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
JAnder
Helper I
Helper I

Getting error messages with SDK

I have noticed when using the SDK, if a request fails you get the error code and related message, such as BadRequest, but you do not get any more information.  If I was to use Fiddler I can see in the response there is a much more detailed message which the SDK does not appear to pass on.

 

Is there a way to get the message that I am missing or is the recommended way to use a HttpClient and construct the requests manually? Seems like a pretty bad oversight. The SDK is a huge time saver, but that is a big flaw.

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @JAnder ,

There is such a tool, but only specific personnel can use it, not open to the public. Please review the follwing link, hope it can give you some clue and insights.

Extract error details from Power BI response

Make HTTP requests with the HttpClient class

Best Regards

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

View solution in original post

2 REPLIES 2
JAnder
Helper I
Helper I

Thanks for the reply, so it does seem if you use the SDK you cannot get error messages, you will need to use the  rest API direct. A shame, seems more like a bug than a feature.

v-yiruan-msft
Community Support
Community Support

Hi @JAnder ,

There is such a tool, but only specific personnel can use it, not open to the public. Please review the follwing link, hope it can give you some clue and insights.

Extract error details from Power BI response

Make HTTP requests with the HttpClient class

Best Regards

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

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.