• Resolved chercka

    (@chercka)


    We are getting randomly disconnected from SF and having to reauth through the admin authorize tab. I have not been able to identify a pattern. It’s happening a few times a month.

    Anyone have experience with this and potential insight on how to resolve?

    It causes a fatal error
    PHP Fatal error: Uncaught Object_Sync_Sf_Exception: Unable to access identity service. in …/wp-content/plugins/object-sync-for-salesforce/classes/salesforce.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    Do you already have “Perform requests on your behalf at any time” selected as an OAuth scope on the Salesforce app? That’s the only thing I can think of that could cause this, but there certainly might be other reasons. I haven’t seen it happen, in any case.

    Thread Starter chercka

    (@chercka)

    I do have the following in the OAuth scope.

    Perform requests on your behalf at any time (refresh_token, offline_access)
    Access and manage your data (api)

    I’ve added ‘Full access’ just now to see if that helps.

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    I’m going to mark this one as resolved for now, in the hopes that you’ve been able to figure it out.

    Thread Starter chercka

    (@chercka)

    It still happens a few times a month which is a manageable amount for us. Haven’t found any pattern or potential causes for this.

    Thread Starter chercka

    (@chercka)

    Had this happen twice this week and had to do some digging. Finding this error in the log when it occurs:

    PHP Fatal error: Uncaught Object_Sync_Sf_Exception: There is no refresh token. in /wp-content/plugins/object-sync-for-salesforce/classes/salesforce.php:625

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    That seems right, as far as the error message is concerned. Have you tried logging out of Salesforce in the plugin, and then logging back in? If your refresh token has been deleted somehow, this should generate a new one.

    If that doesn’t work, I think I would ask Salesforce’s support for advice. I know you’ve got the API settings where they should be, and I’m not aware of any other reasons that a refresh token wouldn’t be sent to the plugin.

    Thread Starter chercka

    (@chercka)

    Going to the authorize tab and reconnecting always fixes it.

    However I was piggy-backing on the plugin’s API connection for some user-facing functionality and they obviously don’t have the option to login and re-auth when something fails.

    Since the issue seems to always resolve itself given some time, it’s adequate for less time sensitive actions like background sync’ing. So I went ahead and switched my user-facing functionality over to our own API connection instead of relying on this plugin’s.

    So to summarize: I don’t know why the plugin’s auth disconnects but I’ve made changes in our setup to make sure it doesn’t affect our end-users any longer.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘403 Unable to access identity service’ is closed to new replies.