GithubHelp home page GithubHelp logo

unknown encoding: idna about httpie HOT 3 CLOSED

httpie avatar httpie commented on April 28, 2024
unknown encoding: idna

from httpie.

Comments (3)

jkbrzt avatar jkbrzt commented on April 28, 2024

Please run the command with --debug and post the whole command and output here.

from httpie.

pykaso avatar pykaso commented on April 28, 2024

Configuration:

Python 2.7 32-bit
Windows7 x64

e:\deploy\python\Scripts>http.exe google.com --debug

Result:

HTTPie 0.3.0
HTTPie data: C:\Users\pykaso\AppData\Roaming\httpie
Requests 0.14.0
Pygments 1.5
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] win32

>>> requests.request({'allow_redirects': False,
>>>  'auth': None,
>>>  'config': {'base_headers': {'Accept': '_/_',
>>>                              'Accept-Encoding': 'identity, deflate, compress, gz
>>> ip',
>>>                              'User-Agent': 'HTTPie/0.3.0'}},
>>>  'data': OrderedDict(),
>>>  'files': OrderedDict(),
>>>  'headers': {},
>>>  'method': 'get',
>>>  'params': ParamDict(),
>>>  'prefetch': False,
>>>  'proxies': {},
>>>  'timeout': 30,
>>>  'url': 'http://google.com',
>>>  'verify': True})

Traceback (most recent call last):
  File "e:\deploy\python\Scripts\http-script.py", line 8, in <module>
    load_entry_point('httpie==0.3.0', 'console_scripts', 'http')()
  File "build\bdist.win32\egg\httpie\core.py", line 79, in main
  File "build\bdist.win32\egg\httpie\client.py", line 28, in get_response
  File "e:\deploy\python\lib\site-packages\requests-0.14.0-py2.7.egg\requests\sa
fe_mode.py", line 39, in wrapped
    return function(method, url, *_kwargs)
  File "e:\deploy\python\lib\site-packages\requests-0.14.0-py2.7.egg\requests\ap
i.py", line 51, in request
    return session.request(method=method, url=url, *_kwargs)
  File "e:\deploy\python\lib\site-packages\requests-0.14.0-py2.7.egg\requests\se
ssions.py", line 252, in request
    r.send(prefetch=prefetch)
  File "e:\deploy\python\lib\site-packages\requests-0.14.0-py2.7.egg\requests\mo
dels.py", line 490, in send
    url = self.full_url
  File "e:\deploy\python\lib\site-packages\requests-0.14.0-py2.7.egg\requests\mo
dels.py", line 399, in full_url
    netloc = netloc.encode('idna').decode('utf-8')
LookupError: unknown encoding: idna

from httpie.

jkbrzt avatar jkbrzt commented on April 28, 2024

Please re-open if the issue persists with the latest HTTPie version.

from httpie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.