Giter VIP home page Giter VIP logo

pymailtm's Issues

Hello

How can I use mail.tm api in python I neeed some help to use it. Thanks

I can't generate the token

I tried to generate the token with this api request:
POST https://api.mail.tm/token

But I'm getting this error:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>

If you have any Idea that I made wrong please write me.

Client crashes when failing to communicate with the mailtm api

New account created and copied to clipboard: [email protected]


Waiting for new messages...
Traceback (most recent call last):
  File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python39\Scripts\pymailtm.exe\__main__.py", line 7, in <module>
  File "c:\python39\lib\site-packages\pymailtm\cli.py", line 29, in init
    MailTm().monitor_new_account(force_new=args.new_account)
  File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 181, in monitor_new_account
    account.monitor_account()
  File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 74, in monitor_account
    new_msg = self.wait_for_message()
  File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 66, in wait_for_message
    while len(self.get_messages()) == start:
  File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 39, in get_messages
    for message_data in r.json()["hydra:member"]:
  File "c:\python39\lib\site-packages\requests\models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "c:\python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "c:\python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "c:\python39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

pip install error


input:  pip install pymailtm
output:

Collecting pymailtm
  Could not find a version that satisfies the requirement pymailtm (from versions: )
No matching distribution found for pymailtm



input:   pip install git+https://github.com/CarloDePieri/pymailtm.git
output:

Collecting git+https://github.com/CarloDePieri/pymailtm.git
  Cloning https://github.com/CarloDePieri/pymailtm.git to /tmp/pip-7u2r_2c4-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-7u2r_2c4-build/setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-7u2r_2c4-build/


Install command with pip error occurs. I guess because setup.py doesn't exist. Can you please add setup.py to the repo?

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.