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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors