YannickRe / ms-graph-proxy-function

Azure Function that acts as a Proxy to the Microsoft Graph, for the purpose of allowing Power BI to connect to the Microsoft Graph
20 stars 10 forks source link

Mashup 400 Error #2

Open cxputcm opened 4 years ago

cxputcm commented 4 years ago

HI Yannick,

Thank you for this tutorial its been easy to follow so far.

Im getting the following error when I try to make a query to graph

Details: "Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed: OData Version: 3 and 4, Error: The remote server returned an error: (400) Bad Request. (Object reference not set to an instance of an object.) OData Version: 4, Error: The remote server returned an error: (400) Bad Request. (Object reference not set to an instance of an object.) OData Version: 3, Error: The remote server returned an error: (400) Bad Request. (Object reference not set to an instance of an object.)"

This is some of the telemetery from the most recent error in Azure, do you have any idea what I could be doing wrong ?

Event time 3/11/2020, 3:48:27 PM (Local time)  
Message Object reference not set to an instance of an object.  
Exception type System.NullReferenceException  
Failed method MicrosoftGraphProxyFunction.Utils.UrlUtilities.Combine
YannickRe commented 4 years ago

Multiple things could be going wrong here, but there are some easy things to check first:

cxputcm commented 4 years ago

Hi Yannick,

Details as follows

Azure Function Call URL

https://powerbigraphprox.azurewebsites.net

I've checked for values, they seem to be there as stated in the tutorial.

I might try to rerun it, maybe I missed something.

YannickRe commented 4 years ago

That’s already great information, but I’d like to get the full URL with the Graph endpoint you’d like to load. Eg. https://powerbigraphprox.azurewebsites.net/V1.0/users

cxputcm commented 4 years ago

Hey Yannick,

Its as you've stated, is that incorrect ?

YannickRe commented 4 years ago

No, that url is correct.

I just reinstalled it and tried it, worked on my end...