Skip to content
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

Unhandled Salesforce error: status: 406 #883

Open
1 task done
junyuanz1 opened this issue Jun 5, 2024 · 2 comments
Open
1 task done

Unhandled Salesforce error: status: 406 #883

junyuanz1 opened this issue Jun 5, 2024 · 2 comments
Assignees
Labels

Comments

@junyuanz1
Copy link

Restforce doesn't have a definition for the error code status code 406 it seems should match to NOT_ACCEPTABLE

I discovered this missing error code because:

#<Restforce::ResponseError response={:status=>406, :headers=>{"date"=>"Wed, 05 Jun 2024 02:47:56 GMT", "content-length"=>"0", "connection"=>"keep-alive", "server"=>"sfdcedge", "x-sfdc-request-id"=>"90b1b2bf3dde64553a28c0df1413041b"}, :body=>""}>
  • I tried to rescue it or refer to it in my code
@timrogers
Copy link
Collaborator

@junyuanz1 Thanks for flagging this! Based on the blank body, this looks like an interesting edge case. How did you trigger the 406 error? Is it reproducible?

@junyuanz1
Copy link
Author

I only found this in our logging & but it seems it only appeared once. So I guess maybe it is just a one-time issue on the Salesforce API side. I created the ticket since there is no proper error class to handle this without checking for status code + body. But let me know if this is expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants