We get this error from salesforce (in the sandbox environment) erratically while creating new accounts. Sometimes the account gets created successfully and at other times we get this error:
[Error: Invalid URI "/services/data/v36.0/sobjects/Account"]
We are using jsforce (node.js).
Any ideas why this could be happening? Has anyone else encountered this. I remember this working just fine when I first wrote the code a few months ago.
It's not with our data, because sometimes the request has succeeded with the same exact data and at other times it has failed.
Relevant code snippet:
var orgInfo = { Name: 'Test 28 Org',
Phone: '1111111111',
POC_First_Name__c: 'test',
POC_Last_Name__c: '28',
BillingStreet: '123 Main St',
BillingCity: 'Fayetteville',
BillingState: 'GA',
BillingPostalCode: '30215',
BillingCountry: 'United States',
ShippingStreet: '123 Main St',
ShippingCity: 'Fayetteville',
ShippingState: 'GA',
ShippingPostalCode: '30215',
ShippingCountry: 'United States',
Preferred_Method_of_Payment__c: 'Purchase Order' }
conn.sobject('Account').create(orgInfo, function(err, res) {
if (err || !res.success) { return winston.error('Error occurred during SF account creation ', err, res); }
// internal code
});