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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
JAnder
Helper II
Helper II

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
Anonymous
Not applicable

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

View solution in original post

2 REPLIES 2
JAnder
Helper II
Helper II

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.

Anonymous
Not applicable

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.