-
Notifications
You must be signed in to change notification settings - Fork 229
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
Error message is undefined #42
Comments
It seems like this issue has been open for more than a few months now. We have made many changes in the SDK since then, including releasing a new version. If you can repro your specific issue with the latest version of the SDK, please create a new issue or comment here with further details. |
Ok, thanks for the heads up! |
Fixed Error message is undefined facebook#42
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
Didn't fixed yet |
Did some digging. The A possible fix could be to modify the |
Any update on this? It makes the API very difficult to use on the client side, since we can't properly log errors. EDIT: NVM, I just went ahead and fixed it. See #158 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Hi, the issue is still present and my PR is still open. #158 |
I have tried to create a new AdAccount for my business, and I can see in the network panel of the browser devtools that I get an error with a message
One or more of the ad accounts in your business manager are currently in bad standing or in review. All of your accounts must be in good standing in order to create or add new ad accounts.
However, when I try to display the error message to the user, the message is
undefined
.I can see when I console log the
FacebookRequestError
that themessage
field is indeedundefined
. When looking at the source, it seems that the generation of the Error object expects aname
property on the object returned by Facebook, but it is not present (maybe a legacy thing).Adding a general case in https://github.com/facebook/facebook-nodejs-ads-sdk/blob/master/src/exceptions.js#L68 would at least allow a non-conventional value for the
name
to not ignore the message returned.The text was updated successfully, but these errors were encountered: