Forum Discussion
Connar_Rosebrau
Jul 03, 2013Nimbostratus
"basic auth failed" when creating a simple connection
Hello,
When I run the code at the following link from the command line (ie. "python example.py") I get the exception "suds.transport.TransportError: HTTP Error 401: basic auth failed"
What makes this so bizarre is that if I set up this same BIGIP instance in the interpreter, it works just fine. So I am unable to run this from a script. What is making this happen? How do I solve this?
Thanks
- L4L7_53191NimbostratusI remember running into this way back - there was some issue with the urllib2 library and an older python (2.6 if I recall). Are you sure you're using the same interpreter both for your shell and your script?
- Connar_RosebrauNimbostratus
L4L7,
edit:
urllib2 is version 2.7 in both cases. what else could be causing this?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects