Closed victorhooi closed 10 years ago
It's a bug.
Minimal example:
$ http --traceback username@example.org
Traceback (most recent call last):
File "/usr/local/Cellar/httpie/HEAD/libexec/bin/http", line 8, in <module>
load_entry_point('httpie==0.9.0-dev', 'console_scripts', 'http')()
File "build/bdist.macosx-10.9-intel/egg/httpie/core.py", line 101, in main
File "build/bdist.macosx-10.9-intel/egg/httpie/input.py", line 147, in parse_args
File "build/bdist.macosx-10.9-intel/egg/httpie/input.py", line 219, in _process_auth
TypeError: sequence item 1: expected string or Unicode, NoneType found
The problem is that HTTPie doesn't expect username in the URL without password (here).
It should be fixed in current master. Let me know if it works for you:
I'm trying to make a GET request against the Flowdock Streaming API (https://www.flowdock.com/api/streaming). I'm using httpie 0.8.0.
I have the following which works in Curl (I've mangled the token starting with "51cd" slightly to sanitise it):
However, when I try with httpie, I get:
Any thoughts?