Skip to content

Instantly share code, notes, and snippets.

Created September 7, 2017 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e92564d9fa5cd3cea233d64bf7d1b204 to your computer and use it in GitHub Desktop.
Save anonymous/e92564d9fa5cd3cea233d64bf7d1b204 to your computer and use it in GitHub Desktop.
curl -si localhost:8000/login -c ~/cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -d '{
"username": "svcuser",
"password": "******",
"eauth": "auto"
}'
<h2>401 Unauthorized</h2>
<p>Could not authenticate using provided credentials ''</p>
<pre id="traceback">Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/netapi/rest_cherrypy/app.py", line 506, in hypermedia_handler
ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/salt/netapi/rest_cherrypy/app.py", line 1506, in POST
'Could not authenticate using provided credentials %r' % (token,))
HTTPError: (401, "Could not authenticate using provided credentials ''")
</pre>
<div id="powered_by">
<span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.2.3</a></span>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment