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

Problema con la función client.get_static() #3

Open
Juerodriguez opened this issue Apr 12, 2024 · 1 comment
Open

Problema con la función client.get_static() #3

Juerodriguez opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Juerodriguez
Copy link

Buenas he tratado de ejecutar un script que usaba la funcion de get_static() y me sale el siguiente Traceback de error.

Traceback (most recent call last):
File "/data/smn_national.py", line 21, in
asyncio.run(main())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/data/smn_national.py", line 8, in main
forecast_now = await client.get_static()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/envtest/lib/python3.11/site-packages/smn/client.py", line 66, in get_static
tf_filename = await self.__get(SMNConstants.STATIC_ENDPOINT + 'tiepre', save=True, format='.zip')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/envtest/lib/python3.11/site-packages/smn/client.py", line 54, in __get
return await response.json()
^^^^^^^^^^^^^^^^^^^^^
File "/data/envtest/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1166, in json

@Juerodriguez Juerodriguez changed the title Problema con la funcion client.get_static() Problema con la función client.get_static() Apr 12, 2024
@manucabral
Copy link
Owner

manucabral commented Apr 12, 2024

Hola @Juerodriguez,
Gracias por reportar este error parece que han cambiado la respuesta del archivo estático. Pronto subo la nueva actualización. Mientras podes utilizar la primera opción "API".

@manucabral manucabral added the bug Something isn't working label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants