You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to update a ticket with an attachment but it's failing with the below error:
Unhandled Rejection (TypeError): form.getHeaders is not a function
utils.js:159 Uncaught (in promise) TypeError: form.getHeaders is not a function
at makeRequest (utils.js:159)
at Freshdesk.createReply (client.js:226)
at uploadScreenshot (QuickTicket.jsx:211)
Found the issue.
When using this package in a browser, the FormData object doesn't have a getHeaders() method.
If the line #159 in utils.js is changed to:
Hi,
I am trying to update a ticket with an attachment but it's failing with the below error:
The payload is:
I followed the instructions on https://www.npmjs.com/package/freshdesk-api to attach a file.
Am I missing something?
The text was updated successfully, but these errors were encountered: