Sachin
Sachin

Reputation: 1003

Salesforce using Rails | Restforce gem | Error: Connection prefix not set

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

Answers (1)

Jenna Pederson
Jenna Pederson

Reputation: 5971

Make sure that the client id (SALESFORCE_USERNAME environment variable) is set to the correct value.

Upvotes: 2

Related Questions