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.

Exception: expected 302 redirect

See original GitHub issue

Hello,

I keep getting this error and have no clue why is that.

[*] Successfully extracted the IdP certificate
[*] CN: cn=TrustedCertChain-1,cn=TrustedCertificateChains,cn=<redacted>.local,cn=Tenants,cn=IdentityManager,cn=Services,dc=<redacted>,dc=local
[*] Domain: <redacted>.local
[*] Successfully extracted trusted certificate 1
[*] Successfully extracted trusted certificate 2
[*] Obtaining hostname from vCenter SSL certificate
[*] Found hostname <redacted>.<redacted>.local for <redacted>
[*] Initiating SAML request with <redacted>
[-] Failed initiating SAML request with <redacted>
Traceback (most recent call last):
  File "/home/morpheus/stuff/vcenter_saml_login/vcenter_saml_login.py", line 347, in <module>
    req = saml_request(args.target)
  File "/home/morpheus/stuff/vcenter_saml_login/vcenter_saml_login.py", line 241, in saml_request
    raise Exception("expected 302 redirect")
Exception: expected 302 redirect

I did check a little bit and if I understand correctly, the code expects to 302 redirect and gives exception when it doesn’t. The thing is, the host is making 302 redirect but still, I’m getting this exception. Any help, suggestions will be priceless. Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
scopedsecuritycommented, Jan 13, 2022

Thanks for all the info. I’ll dig into a 7.0.3 when I have some time to dig into this some more.

0reactions
barrett092commented, Mar 21, 2022

Getting this 302 redirect error as well. Just wanted to check if anyone has figured out a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix the HTTP 302 Error (5 Methods)
HTTP 302 codes are useful to temporarily redirect website users to another URL. If you're getting this error code, here are 5 ways...
Read more >
302 Found - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 302 Found redirect status response code indicates that the resource requested has been temporarily ...
Read more >
How to Fix 302 Found Error (5 Methods)
If the HTTP 302 status code is delivered through the post request, the web browser should not redirect content without the user's confirmation....
Read more >
ConnectionRefusedError error on 302 redirects · Issue #4167
302 redirects insert localhost into url (and change scheme from https to http). Aside: urllib3 works fine: http = urllib3.PoolManager() ...
Read more >
redirect - What does HTTP/1.1 302 mean exactly?
A 302 redirect means that the page was temporarily moved, while a 301 means that it was permanently moved. 301s are good for...
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