by Rolustech

Become more efficient! Enter everything just once. Automatically sync Emails, Calendars, Contacts, and Documents between Google Apps and Sugar. Get your Gmail, Contacts, Calendar items and Documents automatically synced instantly with this seamless integration.

Free Trial

By clicking you consent to share your profile with the developer

#478 - Error: redirect_uri_mismatch

Closed Bug? created by rich 8 years ago

I see this in many posts here and posting seems to be the way to get it resolved. I installed the module yesterday and following the advice in the various responses here I did not enable document sync yet. I am running an On-Site instance of CE. As soon as I try to save the profile after entering the google credentials I get the following error: The redirect URI in the request: http://dubrawski.net/SuiteCRM/index.php?module=Users&action=GoogleOauth did not match a registered redirect URI

I suspect that my domain needs to be added to some registration. The installation process indicated that it could take 1-2 days for documents but contacts, calendar and email should work immediately; but that has not been the case (well email works but that is just using imap and worked before the module was installed).

  1. rolustech member avatar

    Rolustech Provider Affiliate

    8 years ago

    Hi,

    Thanks for contacting us, as we see that you are using SuiteCRM and GSync compatibility is not tested yet with SuiteCRM.

    Thanks, Support

    • rich member avatar

      rich

      8 years ago

      So what does this mean? Is the redirect error expected or not? Is there some data that I can capture or are you washing your hands of the whole thing?

  2. rich member avatar

    rich

    8 years ago

    Hi I just now attempted to install the module and configure it on my SugarCRM CE installation on the same host and I get the same exact behavior. I am evaluating this currently for a customer who hopes to use the SuiteCRM option but could use the SugarCRM CE if it worked there. As I get the exact same redirect URI error with the only difference being the URI is dubrawski.net/mysugar/index.php in the case of the SugarCRM CE.

    If this isn't the correct place to submit this please direct me to your support Here is the error on the SugarCRM CE attempt: Error: redirect_uri_mismatch The redirect URI in the request: http://dubrawski.net/mysugar//index.php?module=Users&action=GoogleOauth did not match a registered redirect URI Learn more Request Details cookie_policy_enforce=false scope=https://www.googleapis.com/auth/drive response_type=code redirect_uri=http://dubrawski.net/mysugar//index.php?module=Users&action=GoogleOauth access_type=offline display=page user_id=rich@dubrawski.net hd=dubrawski.net prompt=consent client_id=864924022469.apps.googleusercontent.com

  3. rich member avatar

    rich

    8 years ago

    I reviewed the sugarcrm.log file and it leads me to believe that my URL is not on your list of approved redirect URLs. Can you confirm that http://dubrawski.net/SuiteCRM/index.php is on the list? It appears that your are just using the Google Calendar and Contacts APIs for those parts, and the Drive API for the google drive portion. since the Cal and Contacts do not currently require OAuth 2.0 support, I would expect them to work if I disabled the Drive support as indicated in the instructions, but the code seems to attempting to use the Drive support either way. If that is all that is wrong, then I would expect it to work once my URL is in the list, otherwise, and if I don't hear back I may attempt to use the On-Demand module that does not employ the Drive support to see if I can at least get Contacts and Calendar sync working.

  4. rolustech member avatar

    Rolustech Provider Affiliate

    8 years ago

    Hi,

    Your url has been added but currently gsync will not work with SuiteCRM. We have this in our to do list and will inform you accordingly.

    Thanks, Support

  5. rich member avatar

    rich

    8 years ago

    Thank you for the update. Do you anticipate this support in the next 30 days (before my trial period ends)?

  6. rich member avatar

    rich

    8 years ago

    As a data point for you, I was able to install and get the OnDemand instance to work. The issue seems to be OAuth 2.0 related.

  7. rolustech member avatar

    Rolustech Provider Affiliate

    8 years ago

    Hi,

    Thanks for updating us , this information has been forwarded to development team. We will get back to you soon.

    Thanks, Support

  8. rich member avatar

    rich

    8 years ago

    During testing, I encountered an issue where the contact sync ran into an error when communicating with google. Once that occurred, that user was never able to sync their contacts again. We tried removing their credentials (ID and password) the adding them again to trigger a clean sync. The log showed that the sync ran, but no data was exchanged. I had the same user try again on a staging instance that they had never used the GSync with before and it was able to sync successfully. The issue would be that error handling seems to be lacking, providing no feedback to the user that a sync failed, and then getting stuck in a state following the failure where it just doesn't work.

  9. rolustech member avatar

    Rolustech Provider Affiliate

    8 years ago

    Hi,

    There can be issue while communicating with google but it does not mean that contacts for that user will not be synced later on. To troubleshoot this please do following step. 1. Re-enter Gmail credentials and press "Test Connection" it should be successful. 2.Now press save button and it should be saved successfully if not then there can be issue. 3.Now create contact and wait for scheduler run. It should sync successfully if not please send your sugarcrm log file

    Thanks, Support

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
  • "Been trying to get this to work for two weeks. Very little support. I hope it works but to this day, it does not." - meyerwells

    Read More Reviews