Skip to content

Comments

Handle unexpected end of JSON input for exceptions#311

Open
ahmtakf wants to merge 1 commit intofacebook:mainfrom
ahmtakf:exception-body-unexpected-end-of-json
Open

Handle unexpected end of JSON input for exceptions#311
ahmtakf wants to merge 1 commit intofacebook:mainfrom
ahmtakf:exception-body-unexpected-end-of-json

Conversation

@ahmtakf
Copy link

@ahmtakf ahmtakf commented Apr 25, 2025

Some error details cannot be viewed because the error body parse fails on JSON.parse.

Error Stack=>
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at constructErrorResponse (/var/task/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:415:46)
at new FacebookRequestError (/var/task/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:369:25)
at /var/task/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:674:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants