web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP GET 301 (MovedPer...
Power Automate
Unanswered

HTTP GET 301 (MovedPermanently) - Ignore?

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I am using HTTP GET to pick up data from an API source within a loop. Occasionaly, I get a 301 error but the page you get redirected to is correct and holds the info I need. Is there anyway to ignore the 301 error and simply continue (not ignoring the page)?

 

2021-01-04_12-36-32.jpg

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

2021-01-04_12-39-39.jpg

Thanks.

Pete.

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,853 Most Valuable Professional on at

    Hi @Anonymous,

     

    A workaround could be to configure a second http action to run after the first HTTP action if it fails. You can use the location field from the output to post another HTTP request to the new location.

     

    That approach is described in this blog post: https://erikyadams.wordpress.com/2019/07/19/microsoft-flow-http-action-and-302/

     

    1. Add another http action (HTTP - 301) and add the following expression to the URI field:

     

    actions('HTTP').outputs.headers.Location

     

     

    uri_301.png

    2. Configure the new action to run after the HTTP action if it has failed.

    hasfailed.png

     

    Btw, you could also use a condition to actually check for the 301 status first. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard