Skip to main content

I'm trying to create a ticket with attachments using freshdesk create ticket API, but getting the following error message from freshdesk. Happens only when ticket is created with attachments.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 <head>

  <meta http-equiv="content-type" content="text/html; charset=utf-8" />

  <title>We're sorry, but something went wrong (500)</title>

 </head>

 <body>

  <div class="wrapper">

      <i class="hero-image"></i>

    <div class="content">

        <h2>We're sorry, but something went wrong.</h2>

        <p>We've been notified about this issue and we'll take a look at it shortly.</p>

     </div>

   </div>

Hello Harshitha,


Can you please share the request parameters or share the X-Request ID for the failing requests so that we can have a look and help you with this?


Cheers!


Got hold of X-Request-ID  fe01ae615830ec98f87358ffcbef7440


This is the entire request header


HTTP/1.1 500 Internal Server Error

Date: Wed, 09 Jan 2019 00:14:36 GMT

Content-Type: text/html; charset=utf-8

Content-Length: 38052

Connection: keep-alive

Status: 500 Internal Server Error

X-XSS-Protection: 1; mode=block

X-Request-Id: fe01ae615830ec98f87358ffcbef7440

X-Runtime: 0.042724

X-Frame-Options: SAMEORIGIN

X-Rack-Cache: invalidate, pass

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

        <head>

                <meta http-equiv="content-type" content="text/html; charset=utf-8" />

                <title>We're sorry, but something went wrong (500)</title>

        </head>

        <body>

                <div class="wrapper">

      <i class="hero-image"></i>

                  <div class="content">

        <h2>We're sorry, but something went wrong.</h2>

        <p>We've been notified about this issue and we'll take a look at it shortly.</p>

            </div>

          </div>






POST DATA: Array

(

[helpdesk_ticket[subject]] => Test with attachment

[helpdesk_ticket[description]] => Test ticket

[helpdesk_ticket[email]] => honkar@technicate.com

[helpdesk_ticket[priority]] => 3

[helpdesk_ticket[attachments][][resource]] => @/var/www/datacate-portal/tmp/1546992876/Cover Letter.pdf

)