-
Notifications
You must be signed in to change notification settings - Fork 9
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
no such file or directory #7
Comments
Interesting. I'll take a look. I also didn't know curl could work with unix sockets so thanks for showing that! |
@msabramo It's actually |
cool! thanks for looking into it. On Thu, Mar 19, 2015 at 5:29 AM, Jakub Roztočil notifications@github.com
Jessie Frazelle |
BTW, I created https://github.com/msabramo/requests-unixsocket (which this is based on) with the thought that perhaps https://github.com/docker/docker-py might be able to use it, so if |
@jfrazelle: I think this is just a simple typo. You did:
And I also got an error when I did that. When I replace the
Does that solve the issue? This perhaps points out though that perhaps this URL syntax is error-prone and I should look into adopting the nicer URL syntax that |
Wow so sorry! On Monday, March 23, 2015, Marc Abramowitz notifications@github.com wrote:
Jessie Frazelle |
@jakubroztocil: It looks like perhaps httpie needs to be modified a bit to support that nicer syntax?
It's happier with two slashes instead of three (though it still fails because my library doesn't support the new syntax yet):
|
@jfrazelle: No worries. I'm thinking that's a sign that the current syntax is too messy and we should try to have a nicer one like |
@jakubroztocil: Re my earlier comment; it seems that it's
but maybe there is something that can be done in httpie to avoid hitting that? |
Here's what the stack trace looks like after I commented out the exception handling in httpie: (httpie-unixsocket.venv)vagrant@vagrant-ubuntu-trusty-64:~/httpie$ http http+unix:///var/run/docker.sock:/info
Traceback (most recent call last):
File "/home/vagrant/httpie-unixsocket.venv/bin/http", line 9, in <module>
load_entry_point('httpie==1.0.0-dev', 'console_scripts', 'http')()
File "/home/vagrant/httpie/httpie/core.py", line 112, in main
response = get_response(args, config_dir=env.config.directory)
File "/home/vagrant/httpie/httpie/client.py", line 41, in get_response
response = requests_session.request(**kwargs)
File "/home/vagrant/httpie-unixsocket.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 450, in request
prep = self.prepare_request(req)
File "/home/vagrant/httpie-unixsocket.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 381, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/vagrant/httpie-unixsocket.venv/local/lib/python2.7/site-packages/requests/models.py", line 304, in prepare
self.prepare_url(url, params)
File "/home/vagrant/httpie-unixsocket.venv/local/lib/python2.7/site-packages/requests/models.py", line 364, in prepare_url
raise InvalidURL("Invalid URL %r: No host supplied" % url)
requests.exceptions.InvalidURL: Invalid URL u'http+unix:///var/run/docker.sock:/info': No host supplied |
The text was updated successfully, but these errors were encountered: