cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

How to view HTTP request code being sent by HTTP Action

I am trying to interface with the USGS elevation point query service API using Automate.

 

I am having difficulty troubleshooting the errors without seeing the HTTP request code being generated. Is there a way to view this information?

 

I have the API request working in Postman and Python; so, I believe my problem is how I am using Automate.

 

Link to the USGS API documentation: https://ned.usgs.gov/epqs/

 

Snip of the HTTP block inputs:

 

 

Capture.PNG

 

Compared to the HTTP code generated through Postman:

[[GET /epqs/pqs.php?x=-120.437001&y=36.701&units=Feet&output=json HTTP/1.1
Host: nationalmap.gov]]

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: How to view HTTP request code being sent by HTTP Action

Hello @Anonymous 

 

I tried it also using an HTTP action and got the error. From the browser it works. Looked into the settings for the action and turned on the option for Suppress workflow headers.

After doing that, the HTTP action worked and I got the result 🙂

Kind regards, John

View solution in original post

4 REPLIES 4
Highlighted
Solution Specialist
Solution Specialist

Re: How to view HTTP request code being sent by HTTP Action

Hi @Anonymous ,

 

I am not sure why it is not working while it works from Postman. I am getting error while I try to hit the same url from flow. Getting Source url cannot be found. Is there any restriction or licensing requirement for us to hit the url

 

Thanks

Highlighted
Anonymous
Not applicable

Re: How to view HTTP request code being sent by HTTP Action

@ManishJain 

 

Thank you for giving this a try. You described the same error I receive when running the request from flow.

 

From everything I've read on the USGS website, there are no licensing requirements/API key or anything like that.

 

Do you know anything about viewing the outgoing request from flow? I suspect the request is being compiled incorrectly.

Highlighted
Super User II
Super User II

Re: How to view HTTP request code being sent by HTTP Action

Hello @Anonymous 

 

I tried it also using an HTTP action and got the error. From the browser it works. Looked into the settings for the action and turned on the option for Suppress workflow headers.

After doing that, the HTTP action worked and I got the result 🙂

Kind regards, John

View solution in original post

Highlighted
Anonymous
Not applicable

Re: How to view HTTP request code being sent by HTTP Action

@JohnAageAnderse that was it! I appreciate the help.

 

I suppose it was adding additional metadata headers which caused a problem for the USGS API.

 

Anyway, thanks again!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (6,323)