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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
chaitanyatrived
Frequent Visitor

connecting to GraphQL API

In the Power BI Website, I made an API for GraphQL (The new preview) and connected it to a Lakehouse. Then following these instructions: https://learn.microsoft.com/en-us/fabric/data-engineering/connect-apps-api-graphql I made an Entra app and REACT app. When I run the REACT app, it launches, lets me log in, and then gives a 400 error when I click the query button. 

My API and Lakehouse are in the same workspace, I turned on all the permissions from the tutorial, and I am running the REACT app from Visual Studio Code 2022. I have also tried connecting to the API via Postman and different Python libraries such as requests and MSAL. They all run, authenticate via a code/login and then either hit a 400 error or it times out. 

3 REPLIES 3
Anonymous
Not applicable

Hi @chaitanyatrived ,

Based on the description, try to verify that adding sign in and sign out functional components in a React app.

vjiewumsft_0-1720060426099.png

Besides, try to check that calling the Graph API from the application.

vjiewumsft_1-1720060439014.png

Viewing the following documents to learn more information.

Tutorial: Create components for sign in and sign out in a React single-page app - Microsoft identity...

Tutorial: Call an API from a React single-page app - Microsoft identity platform | Microsoft Learn

 

Best Regards,

Wisdom Wu

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

I want to try connecting applications to Fabric API for GraphQL. I'm unsure if the account used to create a GraphQL API in Fabric has to be the same as the Azure account used to create Microsoft Entra?

Hey, thanks for the input! I have already added that functionality using the same tutorials unfortunately. The sign in works great every time and it logs me in. Hoever, after signing in, I will click on the Query button which causes the page to freeze and a 400 error when I check page logs through inspect element

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors