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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.