Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Custom Connector: Script Error when logging in using OAuth 2.0 flow

I developed a custom data connector with OAuth2.0 and everytime the token refreshes and i have to engage in the OAuth flow again, i get this scripting error:

Translation:

"An error has occured on this page's script"

Do you wish to continue executing scripts in this page?

 

I press "No" 3 times before it actually works. The Url also changes everytime.

Anyone knows what is this?

Thank you.

5 Replies

  • dax's avatar
    dax
    Community Support

    Hi CAOP,

    I am not sure which  factor cause this problem, if possible, could you please inform me when this error will be prompted, after pass credential? Or other operations? In addition, you could refer to MyGraph Connector Sample to see whether your configuartion is correct. Or you also could share the sample or link which you refer to create custom connector, then we could try to reproduce this in our environment.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      It happens when after i select the connector and the credentials are invalid, so i have to sign in again.
      As soon as i click "Sign in as a different user" it prompts. Also, if i go to query editor it happens as well, if i'm not signed in to the Data Source. 

       

      Note that it still works, if i click "No". If i don't do anything, the error disappears and it loops forever in "Signing you in".

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      I don't understand what you mean by referencing MyGraph. I followed that tutorial, and also github and the official docs. I implemented OAuth2 like it is described, i think.

      What more can i send you?

       


      Thank you,
      Carlos.

    • Anonymous's avatar
      Anonymous
      Not applicable

      dax can you help me?
      Those scripts are causing my Facebook to get temporarily disabled because of suspicious activity.

       

      Again, i'm connecting to an API with OAuth2 and i Login with Facebook. The thing is that before prompting login with facebook dialog, it prompts that scripting errors. I have no clue what this could be...

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi again dax . Any news? 

      • BorisTPL's avatar
        BorisTPL
        Frequent Visitor

        I have the same problem, help would be highly appreciated