-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Errors thrown on successful request to Netsuite #444
Comments
@kmwalke I've never run into this. Any chance you have the request/response XML? What API version are you using? |
Thanks for the response. Unfortunately, I do not have the XML. I'll look into getting that. Looks like we are using version 2018.2 . |
@kmwalke Getting the XML response will be key in figuring out what is causing those empty errors to be generated. Ah, interesting. 2018_2 is relatively recent, so I'm guessing there is a new structure in the XML response that we need to handle. |
@iloveitaly I am seeing this in 2020_1 with gem version 0.8.5. Below is the response body.
|
@robfarmergt awesome, now that we have a sample error, we can fix the issue! Would you be able to create a PR to fix this? |
Addresses issue #444, where some successful requests return an empty error object. See https://system.netsuite.com/help/helpcenter/en_US/WSDiff/2018_2/FolderComparisonReport_files/FileComparisonReport24.html, line 914 for the change to the platformCore schema, https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4407992281.html for a description of afterSubmit scripts, and https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3536574.html#bridgehead_1515748728 for a discussion of error reporting for these scripts. Also added a line for File requests in the add action spec b/c the existing fixture already includes the `after_submit_failed` field. Co-authored-by: Lily Burtness <lily.burtness@charitywater.org> Co-authored-by: Shana Schundler <shana.schundler@charitywater.org> Co-authored-by: Lily Burtness <lily.burtness@charitywater.org> Co-authored-by: Shana Schundler <shana.schundler@charitywater.org>
My team noticed that Some of the NetSuite::Actions can throw an empty Netsuite::Error even on a successful request/response from Netsuite.
For instance, in lib/netsuite/actions/upsert.rb:
We have noticed that sometimes Netsuite returns status of 'success' and a status_detail of {:failed_after_submit => false}. This is basically detail about the success. The code above identifies this status detail and throws an error. Since there is no code, type, or message, the error is empty:
I would be happy to put in a Pull Request for this. Not sure how your team handles this type of thing.
Thanks!
The text was updated successfully, but these errors were encountered: