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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors