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

Erro gerado por resposta do servidor #17

Open
diegoeck opened this issue Jan 8, 2019 · 0 comments
Open

Erro gerado por resposta do servidor #17

diegoeck opened this issue Jan 8, 2019 · 0 comments
Labels

Comments

@diegoeck
Copy link

diegoeck commented Jan 8, 2019

Me parece que ocorreu um problema no servidor e o código não soube interpretar o erro.
Mensagem recebida:

Traceback (most recent call last):
File "", line 1, in
File "trader.py", line 152, in registra
cadastra()
File "trader.py", line 32, in cadastra
Asks,Bids = atualiza_mb()
File "trader.py", line 75, in atualiza_mb
Orderbook=mb.orderbook()
File "/usr/local/lib/python2.7/dist-packages/mercadobitcoin/api.py", line 29, in orderbook
return self.get_api('orderbook')
File "/usr/local/lib/python2.7/dist-packages/mercadobitcoin/api.py", line 15, in get_api
response = requests.get("https://%s/api/%s/" % (self.host, action))
File "/home/diegoeck/.local/lib/python2.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/home/diegoeck/.local/lib/python2.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/home/diegoeck/.local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/diegoeck/.local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/diegoeck/.local/lib/python2.7/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))

@alfakini alfakini added the bug label Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants