• Using Web to lead i can configure Production ORG and Sandbox ORG but I would prefer the API.

    I can connect to my production environment but not to my sandbox environment.

    Login with Salesforce takes me to login.salesforce.com, I can change this to test.salesforce.com and then login. I am presented with the authorise and click yes.

    Returning to Gravity I get “this authorization request has expired, or (less likely) the IP is restricted or invalid login hours.”

    The log says:

    2018-02-20 3:02:41.875560 – DEBUG –> get_api(): The access token is empty – app is not yet authenticated
    2018-02-20 3:03:38.895375 – DEBUG –> processSalesforceResponse: Received access code (aPrxnkBfDzonEr74L3qR.Z5TsRP35onU5LN_GqSdYT_FyUNkxY_GKYSv9VjnCSfIIX6OiO89Cw==). Now fetching Access Token.
    2018-02-20 3:03:40.183238 – ERROR –> processSalesforceResponse: Clearing token, since there was an error.
    2018-02-20 3:03:40.183463 – DEBUG –> Token was cleared.
    2018-02-20 3:03:40.184226 – DEBUG –> Refresh Token cleared
    2018-02-20 3:03:40.184381 – ERROR –> processSalesforceResponse: This authorization request has expired, or (less likely) the IP is restricted or invalid login hours. [Raw error message: Error in retrieving token: “invalid_grant”]
    2018-02-20 3:03:41.349131 – DEBUG –> get_api(): The access token is empty – app is not yet authenticated

    Would the plugin be going back for an access token to login.salesforce.com?

    We don’t to keep pushing test level data into Production.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alfo72

    (@alfo72)

    went from here to WP, edit source (just to see what the code looked like) first line “sandbox = false” change to true….all worked.

    Do recall which file you edited? I’m having the same issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Salesforce API Sandbox’ is closed to new replies.