I’m trying to get an access token using following curl:
curl --data grant_type=password&client_id=Y&client_secret=Z&username=A&password=B+C https://login.salesforce.com/services/oauth2/token
where Y = Consumer Key, Z = secret, A = username and B = password and C = security token.
I get the following error:
I followed the instructions at https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm. If anyone can tell me what I’ve done wrong, it would be brilliant. I’ve no clue why im getting this error.
This could be related to the login issue salesforce reported as fixed, however at least on the instance I'm on this issue is still ongoing for logins through the API.
From the report on status.salesforce.com, that you can find below, using the instance url
https://<yourinstance>.salesforce.com instead of
https://login.salesforce.com should fix the problem.
Salesforce login error issue
May 17th 2017, 8:42 am
On May 17, 2017, The Salesforce Technology Team mitigated an intermittent login issue affecting a subset of customers. The issue began at 03:45 UTC and was resolved as of 05:47 UTC. Some customers may have experienced an intermittent error when attempting to login to test.salesforce.com or login.salesforce.com instead of directly to their instance. Thank you for your continued business and patience during this situation.
Answered by Markus Slabina on December 26, 2020
0 Asked on December 12, 2021 by anubhuti
1 Asked on December 12, 2021 by rachit
3 Asked on December 12, 2021
1 Asked on December 12, 2021
2 Asked on December 12, 2021 by balwill
1 Asked on December 10, 2021 by jetsparx
2 Asked on December 10, 2021
2 Asked on December 10, 2021 by eduardo-lpez
0 Asked on December 10, 2021 by jonathanwiesel
2 Asked on December 7, 2021 by nemesis88
1 Asked on December 7, 2021 by nicstella
1 Asked on December 7, 2021 by sanchit
3 Asked on December 7, 2021
1 Asked on December 7, 2021 by gaurav-sharma
1 Asked on December 7, 2021 by sfdc-devloper
Get help from others!