Skip to content

sf_auth(login_url = ) Bad Request (HTTP 400) #132

@rdinter-usda

Description

@rdinter-usda

Issues with authentication for private instance of Salesforce that appears similar to #111 and #108.

> sf_auth(login_url = "https://PRIVATE-INSTANCE.lightning.force.com/")
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
Error in oauth2.0_access_token(endpoint, app, code = code, user_params = user_params,  : 
  Bad Request (HTTP 400). Failed to get an access token.

Authentication appears to work through the browser, however this error shows up in R. What is strange is I can see a file .httr-oauth-salesforcer in working directory that is created and it is roughly 6 bytes. Then when I attempt to try sf_list_reports() another window pops up for authentication, the browser says authentication worked, and once I return to R the report list is displayed.

Metadata

Metadata

Labels

enhance documentationResolve by editing documentationquestion or helpClarification or help may suffice to resolve

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions