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

Problemas com a funcionalidade "api.time(nome=' ')" #60

Open
aeduaardo-dias opened this issue Oct 25, 2019 · 1 comment
Open

Problemas com a funcionalidade "api.time(nome=' ')" #60

aeduaardo-dias opened this issue Oct 25, 2019 · 1 comment

Comments

@aeduaardo-dias
Copy link

Prezado,

Quando executo o exemplo básico disponível na documentação tenho como retorno o seguinte erro...

import cartolafc
api = cartolafc.Api()
time = api.time(nome='Yoguedes')
2019-10-25 08:34:15,713 - root - ERROR - Error parsing and checking json data:
2019-10-25 08:34:15,721 - root - ERROR - No JSON object could be decoded

Traceback (most recent call last):
File "<pyshell#2>", line 1, in
time = api.time(nome='Yoguedes')
File "C:\Python27\lib\site-packages\cartolafc\api.py", line 277, in time
data = self._request(url)
File "C:\Python27\lib\site-packages\cartolafc\api.py", line 349, in _request
raise error
CartolaFCOverloadError: Globo.com - Desculpe-nos, nossos servidores estão sobrecarregados.

@vicenteneto
Copy link
Owner

Devido à alguns problemas, a última versão da api time suporta apenas buscas por id.

Vou esperar a primeira rodada desse ano fechar, para ter os dados necessários para tentar readicionar o parametro por nome.

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

2 participants