You need to sign in to do that
Don't have an account?
Turing
Unable to access UAT Sandbox via API - Connected Apps
Hi All,
We have been using our UAT Sandbox environment to access salesforce objects on our custom websites via Salesforce API's.
we can successfully validate the conenction using the credentials ( of API user) and passing the cosumer and secret of our connected app, which went through succesfully by giving us the Token, but when we try to access the salesforce objects using the generated token, it failed and gave us error message 'Connection Failure'.
While the same code is working fine with Production environment.
The issue with the UAT - Sandbox started all of the suddent, one day it was working fine and next day we started enperiencing this issue.
Any help will be highly appreciated.
Thanks
Numan
We have been using our UAT Sandbox environment to access salesforce objects on our custom websites via Salesforce API's.
we can successfully validate the conenction using the credentials ( of API user) and passing the cosumer and secret of our connected app, which went through succesfully by giving us the Token, but when we try to access the salesforce objects using the generated token, it failed and gave us error message 'Connection Failure'.
While the same code is working fine with Production environment.
The issue with the UAT - Sandbox started all of the suddent, one day it was working fine and next day we started enperiencing this issue.
Any help will be highly appreciated.
Thanks
Numan
We are using test.salesforce.com and the strange thing is it was working fine untill Monday 18th of May. We are getting Token back after validating with the test.salesforce.com. but it failed wehn we try to access sobjects.
We are not getting detailed error message. only 'Conenction Failure.' and i have also check the login history of the integration user and every time we try to connect it shows Connection successfull for our Connected App (Application) via Remote Access 2.0(Login Type) , login url(test.salesforce.com).
Can you provide a cURL or an example request that you are making? (With the session id redacted of course)
"#insUrl#/services/data/v30.0/sobjects/...
<cfhttpparam type="header" name="Authorization" value="#axTok#">
<cfhttpparam type="header" name="X-PrettyPrint" value="1">
If I do the following in cURL it works for me. You can try to output the values of insUrl and axTok and plug them in below to see if you get the same error message
we are outputting the value of token(type bearer) and instanance url to axTok and insUrl variable respectively.
and also the Authorization variable we are using above which is axTok has format = "Bearer XXXXXXXXXXXXXgenerated tokenXXXXXXXXX"
and we are not gdoing anything different in our test code, the production code is same and working with no errors.
The only thing i am worrying about is, something is broken on Salesforce side on UAT sandox (in our case is CS8).
Thanks you so much for helping me out.