We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How do I get access to the soap errors?
The text was updated successfully, but these errors were encountered:
What method are you calling? Some don't return SOAP errors by default, see my example below about that with the 2 different update calls.
update
Else, make sure you're wrapping the client call with a begin/rescue (like below).
client.update only returns false when it errors out:
client.update
false
object_name = 'Account' updates = {Id: '006A000000Lbiiz', Name: 'Whizbang Corp'} client.update(object_name, updates)
client.update! (with the bang !) returns SOAP errors:
client.update!
!
object_name = 'Account' updates = {Id: '006A000000Lbiiz', Name: 'Whizbang Corp'} begin client.update!(object_name, updates) rescue Savon::SOAPFault => e # or to rescue all: # rescue StandardError => e p '=== SOAP FAULT ===' error = e.to_hash end
Sorry, something went wrong.
No branches or pull requests
How do I get access to the soap errors?
The text was updated successfully, but these errors were encountered: