Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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:

Image.png

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 5
dax
Community Support
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
Not applicable

Hi again @dax . Any news? 

I have the same problem, help would be highly appreciated

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
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".

4.png2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.