-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access request error details from FacebookRequestError #234
Comments
I'm having the same issue too :( |
I'm facing similar issue. Or
|
@fuongduyuid I believe your issue is related to configuration other than api response. My case is about api response and proper |
Is this project abandoned? |
Tested and PR 158 Fixed it. can it still be implemented and tested? |
Which SDK version are you using?
14.0.0
What's the issue?
Can't access the message or code response from the
FacebookRequestError
object. I use the SDK for creating ads through a platform and every time something goes wrong with the request, the SDK returns an instance of FacebookRequestError.When I access the object, the only filled properties are: stack, url, method, name, data (with the request payload).
Project setup: Nuxt.js with facebook sdk as a plugin.
Steps/Sample code to reproduce the issue
1 - On a frontend project, make any invalid request and try to access the status/message from
FacebookRequestMessage
Observed Results:
The lines from the webpack bundle file (cjs.js) represents the following:
351: https://github.com/facebook/facebook-nodejs-business-sdk/blob/main/src/exceptions.js#L18
373: https://github.com/facebook/facebook-nodejs-business-sdk/blob/main/src/exceptions.js#L36
671: https://github.com/facebook/facebook-nodejs-business-sdk/blob/main/src/api.js#L148
Expected Results:
Based on the code, it should be
The text was updated successfully, but these errors were encountered: