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

2k Views Asked by At

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?

1

There are 1 best solutions below

1
Jenna Pederson On

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