21K Views

(English) API Resource | UVdesk Open Source Helpdesk

. . .

Comments (2)

Add Your Comment

  • Andrea Costa
    Looks nice! I did some test, creating, listing ticket, everything ok… but I got the following error on: POST /api/v1/ticket/2/thread

    Here is the curl command:

    curl -v -H « Authorization: Basic N1RA8J7OQNZBO0WJD0WV73U5TX1HNODBQDKAXYBWELQUE5NKYXQNMAB9CEFNNTDL » -H « Content-Type: application/json » -d ‘{« message »: »Messaggio di risposta », « actAsEmail »: »mario.rossi@superfattura.it », « actAsType »: »customer », « threadType »: « reply »}’ -X POST http://localhost/api/v1/ticket/2/thread
    Note: Unnecessary use of -X or –request, POST is already inferred.
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0* Trying 51.77.211.136:80…
    * Connected to localhost (51.77.211.136) port 80 (#0)
    > POST /api/v1/ticket/2/thread HTTP/1.1
    > Host: localhost
    > User-Agent: curl/7.69.1
    > Accept: */*
    > Authorization: Basic N1RA8J7OQNZBO0WJD0WV73U5TX1HNODBQDKAXYBWELQUE5NKYXQNMAB9CEFNNTDL
    > Content-Type: application/json
    > Content-Length: 126
    >
    } [126 bytes data]
    * upload completely sent off: 126 out of 126 bytes
    * Mark bundle as not supporting multiuse
    < HTTP/1.1 500 Internal Server Error
    < Server: nginx
    < Date: Mon, 11 May 2020 16:02:36 GMT
    < Content-Type: application/json
    < Content-Length: 82
    < Connection: keep-alive
    < Vary: Authorization
    < Set-Cookie: PHPSESSID=k9cvfd8j2ali4grvu52n8b1fla; path=/; HttpOnly; SameSite=lax
    < Cache-Control: max-age=0, must-revalidate, private
    < Access-Control-Allow-Origin: *
    < Access-Control-Allow-Methods: GET,POST,PUT,OPTIONS
    < Access-Control-Allow-Headers: Access-Control-Allow-Origin
    < Access-Control-Allow-Headers: Authorization
    < Access-Control-Allow-Headers: Content-Type
    < pragma: no-cache
    < Expires: Mon, 11 May 2020 16:02:36 GMT
    < X-Debug-Token: 322b1d
    < X-Debug-Token-Link: http://localhost/_profiler/322b1d
    < X-Robots-Tag: noindex
    <
    { [82 bytes data]
    100 208 100 82 100 126 245 377 –:–:– –:–:– –:–:– 626{"status":false,"message":"An unexpected error occurred. Please try again later."}
    * Connection #0 to host localhost left intact

    Thank you
    Regards
    AC

    • Himani Gupta
      Hello Andrea Costa,
      Nice day to you!!
      Have you tried the same with the Postman? Kindly try it via postman and let us know if it still exists?
      Thanks for using our community software and your effort.
      Kind Respects
      UVdesk Team
  • css.php