Reputation: 1003
I am hitting Salesforce api using restforce gem. But on my local it is working completely fine for every case. But on staging server(AWS), it's throwing the following exception:
Restforce::UnauthorizedError · app/services/sales_force_methods.rb:23
Connection prefix not set
Any pointers on same?
Upvotes: 1
Views: 2263
Reputation: 5971
Make sure that the client id (SALESFORCE_USERNAME
environment variable) is set to the correct value.
Upvotes: 2