Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

to many request error #13

Open
nanderer opened this issue Dec 12, 2021 · 0 comments
Open

to many request error #13

nanderer opened this issue Dec 12, 2021 · 0 comments

Comments

@nanderer
Copy link

i just installed deeplator to get around the Too many requests problem of https://github.com/vsetka/deepl-translator-cli/ ; but it seams to be the same:

$ git clone https://github.com/uinput/deeplator.git
Cloning into 'deeplator'...
remote: Enumerating objects: 147, done.
remote: Total 147 (delta 0), reused 0 (delta 0), pack-reused 147
Receiving objects: 100% (147/147), 23.92 KiB | 2.66 MiB/s, done.
Resolving deltas: 100% (78/78), done.
n@nTP:~/git$ cd deeplator/
n@nTP:~/git/deeplator$ ls
deeplator  deeplator.py  LICENSE.txt  README.md  setup.py
n@nTP:~/git/deeplator$ ./deeplator.py 
You did not specify a translation code.
Available languages are EN,DE,FR,ES,IT,NL,PL,PT,RU,AUTO.
Source language: AUTO
Output language: DE
Enter the text to be translated. Use Ctrl+D to exit.
hello whats that?

i dont know...
----------------
Traceback (most recent call last):
  File "/home/t/git/deeplator/deeplator/translator.py", line 134, in _send_jsonrpc
    return rpc.send(POST_URL)
  File "/home/t/git/deeplator/deeplator/jsonrpc.py", line 29, in send
    data_str = request.urlopen(req).read()
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 429: Too many requests

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/t/git/deeplator/./deeplator.py", line 52, in <module>
    translations = t.translate_sentences(sentences)
  File "/home/t/git/deeplator/deeplator/translator.py", line 87, in translate_sentences
    resp = _send_jsonrpc(method, params)
  File "/home/t/git/deeplator/deeplator/translator.py", line 136, in _send_jsonrpc
    raise TranslationError(e.reason)
deeplator.translator.TranslationError: Too many requests
n@nTP:~/git/deeplator$   


thanks for fixing that in advance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant