cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JB624
Frequent Visitor

Error with an HTTP Request(Bad request)

Hi - This flow has been working for a few weeks then it started giving off an error I haven't encountered before. I'm grabbing the correct device ID and the token has the correct permissions to perform the actions. Any ideas?

 

rebootNow issue.PNG

 

 

 

3 REPLIES 3
t-imoreira
Microsoft
Microsoft

Hello!

Have you tried to make the endpoint call outside the flow, for example using Postman? In this way you will be able to see where is the problem: in the flow or in the endpoint.

 

-----------------------------------------------------------------------------

If I have answered your question, please mark your post as Solved.

If you like my response, please give it a Thumbs Up.

JB624
Frequent Visitor

Hi @t-imoreira

 

I ran it in Microsoft Graph Explorer and it worked as expected. Not sure why it's not working in flow. The token does have DeviceManagementManagedDevices.PriviligedOperation.All consented in an azure app. 

JB624
Frequent Visitor

@t-imoreira This is the error that is occurring. Any ideas?

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,969)