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

Не работает авторизация на МЦК: No connection adapters were found... #21

Open
petRUShka opened this issue Dec 27, 2017 · 0 comments

Comments

@petRUShka
Copy link

Попробовал сегодня на МЦК. Вылезла ошибка:

Detected provider: MosMetroV2
Parsing initial redirect
Following initial redirect
Traceback (most recent call last):
  File "/home/user/prj/mosmetro-python/mosmetro/__main__.py", line 133, in <module>
    main()
  File "/home/user/prj/mosmetro-python/mosmetro/__main__.py", line 125, in main
    if p.connect():
  File "/home/user/prj/mosmetro-python/mosmetro/__main__.py", line 81, in connect
    r = self.session.get(redirect.geturl(), allow_redirects=False)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 521, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 612, in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 703, in get_adapter
    raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for ': https://auth.wi-fi.ru?segment=mcc'

В браузере, разумеется, авторизуется отлично.

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