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

getting "failed to parse" error #8

Open
pkdeva opened this issue Oct 5, 2023 · 0 comments
Open

getting "failed to parse" error #8

pkdeva opened this issue Oct 5, 2023 · 0 comments

Comments

@pkdeva
Copy link

pkdeva commented Oct 5, 2023

running "ote" in the terminal is showing a temp email from 1secmail.net but it's also throwing the below error:

root@root:~# ote
[email protected]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 434, in prepare_url
    scheme, auth, host, port, path, query, fragment = parse_url(url)
  File "/usr/lib/python3/dist-packages/urllib3/util/url.py", line 394, in parse_url
    return six.raise_from(LocationParseError(source_url), None)
  File "<string>", line 3, in raise_from
urllib3.exceptions.LocationParseError: Failed to parse: https://www.1secmail.com/api/v1/?action=getMessages&login=3kepmqnwog&domain=1secmail.net

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ote", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/ote/__main__.py", line 201, in main
    start_process(username, domain)
  File "/usr/local/lib/python3.10/dist-packages/ote/__main__.py", line 121, in start_process
    emails = check_inbox(username, domain)
  File "/usr/local/lib/python3.10/dist-packages/ote/__main__.py", line 36, in check_inbox
    return requests.get(f'https://www.1secmail.com/api/v1/?action=getMessages&login={username}&domain={domain}').json()
  File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 575, in request
    prep = self.prepare_request(req)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 486, in prepare_request
    p.prepare(
  File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 368, in prepare
    self.prepare_url(url, params)
  File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 436, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: https://www.1secmail.com/api/v1/?action=getMessages&login=3kepmqnwog&domain=1secmail.net

@pkdeva pkdeva changed the title Failed to parse error getting "failed to parse" error Oct 5, 2023
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