Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get a 401 Unauthorized error when running this from my USG #4

Open
charlestephen opened this issue Mar 13, 2024 · 0 comments
Open

Comments

@charlestephen
Copy link

The traceback is below. Any thoughts? The local user created for this function can login (I've tested it in browser) but it still doesn't seem to work.

Traceback (most recent call last):
File "./post-config.d/usg-easy-dns.py", line 230, in
controller.login(username=args.username, password=args.password)
File "./post-config.d/usg-easy-dns.py", line 86, in login
'password': password,
File "./post-config.d/usg-easy-dns.py", line 69, in _request
response = self.opener.open(fullurl=url, data=data)
File "/usr/lib/python2.7/urllib2.py", line 407, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 445, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant