question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stop when reaching 307 (maxRedirects)

See original GitHub issue

Describe the issue On docs it states that setting maxRedirects:0 it would not follow any redirect. When i set it, sending a post request to my endpoint that returns 307, it follows the redirect, which is not supposed to happen.

Expected behavior, if applicable setting maxRedirects: 0 when receiving 307, it would not follow the redirect.

Environment:

  • Axios Version 0.18.1
  • OS: ubuntu 17
  • Browser chrome
  • Browser Version 74.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
matheus1lvacommented, Jun 24, 2019

Of course i can! I’ll build one and add in here!

0reactions
chinesedfancommented, Mar 29, 2020

Redirections are handled by browsers. I think axios can’t stop that. Please correct me if I misunderstood something and remind to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

307 Temporary Redirect - HTTP - MDN Web Docs
HTTP 307 Temporary Redirect redirect status response code indicates that the resource requested has been temporarily moved to the URL given ...
Read more >
ERR_TOO_MANY_REDIRECTS · Cloudflare SSL/TLS docs
This error is commonly caused by: A misconfiguration of your SSL/TLS Encryption mode. Various settings in SSL/TLS > Edge Certificates. A ...
Read more >
Troubleshooting: Too Many Redirects - Liquid Web
The error "too many redirects" means that the website keeps being redirected between different addresses in a way that will never complete.
Read more >
Redirects - Everything curl
The (older) response code to tell a client to send a POST also in the next request but temporarily is 307. This redirect...
Read more >
How to prevent apache http client from following a redirect
the remote server sends a redirect, and i want to achieve that my client isn't following the redirect automatically so that i can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found