Google drive shows integration ready but the URL returns error!

  • Profile Image
    andoverbeacon
    Asked on April 09, 2019 at 08:03 PM

    The process seems to have failed. Instead of seeing a valid URL, I got this on the final screen:

    Integration Ready!

    You drive folder can be found here:

    https://drive.google.com/drive/folders/Cannot initialize folder.Google Drive integration exception in Auth. Err : JotForm Google API Exception in Auth Err : Error fetching OAuth2 access token, message: 'invalid_grant: Bad Request' Form ID :

     

    I'm going to try again, as I got called away between the Allow step and the Complete Integration step ... maybe the Google token or whatever expires.

     

    OK, the second time I tried it I didn't get interrupted and it worked fine.

     

    Please add to the list of requested features:

    1) Trap that error message and don't say Integration Ready when it really failed.

    2) Figure out if a long pause between the Allow step and the Complete Integration step will indeed cause the Complete Integration to fail.

     

    Thanks!

     



    This is a re-post of a comment on How to Integrate a Form with Google Drive



    This is a re-post of a comment on How to Integrate a Form with Google Drive

  • Profile Image
    Jed_C
    Answered on April 09, 2019 at 10:22 PM

    To clarify, after you see the "Integration Ready" and the "Folder link", was the integration not successful or it temporarily shows the error and refreshing the page generates the correct link?

    If refreshing automatically re-generates the token and displays the proper link, your auth token (Error fetching OAuth2 access token) probably was expired.

    Looking forward for your response. 

  • Profile Image
    andoverbeacon
    Answered on April 10, 2019 at 10:22 AM

    Sorry, I'd already moved on so I can't answer your question.

    In any case, JotForm should trap that error and provide a useful suggestion.

    Thanks!

  • Profile Image
    Welvin
    Answered on April 10, 2019 at 12:12 PM

    I'll create a separate ticket for the error trap that you are referring to. I guess the #2 item in your original post can be combined with this option like if it's taking too long and had expired, it will give the error in general since the integration already failed in that case. 

    Your request link here https://www.jotform.com/answers/1788797