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
const data = await this.api.systemDocumentsIdDownloadGet({id: document.id});
It throws the following:
SyntaxError: Unexpected token � in JSON at position 0
at JSON.parse ()
at /Users/troymorvant/Projects/FN/integrations/integration-worker-
connectwise/node_modules/isomorphic-fetch/node_modules/node-fetch/lib/body.js:46:16
at process.internalTickCallback (internal/process/next_tick.js:77:7)
Shouldn't fetch() return a buffer for files rather than attempting to parse the response as json?
The text was updated successfully, but these errors were encountered:
When I try calling the function below:
const data = await this.api.systemDocumentsIdDownloadGet({id: document.id});
It throws the following:
Shouldn't fetch() return a buffer for files rather than attempting to parse the response as json?
The text was updated successfully, but these errors were encountered: