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

Notifications

Announcements

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?

(0) ShareShare
ReportReport
Posted on by

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,189 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard