This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I'm trying to develop a custom data connector that accesses a GraphQl API, using oAuth.
The first time it works great, I get a token and query data!
But when the token expires, the API responds with the following payload:
{
"errors": [
{
"name": "GraphQLError",
"message": "No valid session could be found, please reauthenticate",
"path": [
"roles"
],
"code": "token-invalid",
"locations": [
{
"line": 2,
"column": 3
}
]
}
],
"data": null
}
And then nothing works - the refresh token apparently not being used.
How can I tell the extensions oAuth package that it should retrive a new access_token?
Thanks in advance,
/Alex
Update
In the end I gave up and changed the GraphQl API to return statusCode 401 --> now it works.
Solved! Go to Solution.
Hi @alexbjorlig ,
Is there anything else need to help with regarding this thread? If no, could you please mark your post as Answered? It will help the others in the community find the solution easily when they face the same problem with you. Thank you.
Best Regards
Hi @alexbjorlig ,
Is there anything else need to help with regarding this thread? If no, could you please mark your post as Answered? It will help the others in the community find the solution easily when they face the same problem with you. Thank you.
Best Regards
Where do I mark is as Answered?
Hi @alexbjorlig ,
You can click the button "Accept as Solution" under the helpful post to mark it as Answered.
Best Regards
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.