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

Get Measurements error #33

Closed
kalw opened this issue Dec 6, 2021 · 5 comments
Closed

Get Measurements error #33

kalw opened this issue Dec 6, 2021 · 5 comments

Comments

@kalw
Copy link

kalw commented Dec 6, 2021

Hello !

I semble qu'il y ai encore un petit souci de recuperation des données :)
Comment peu t on aider ?

2021-12-06 08:10:46,984 1 PCE found !
2021-12-06 08:10:46,986 Get measures of PCE xxx alias xxx
2021-12-06 08:10:46,986 Range period : from 2021-11-29 to 2021-12-05...
2021-12-06 08:10:47,050 https://monespace.grdf.fr:443 "GET /api/e-conso/pce/consommation/informatives?dateDebut=2021-11-29&dateFin=2021-12-05&pceList%5B%5D=xxx HTTP/1.1" 200 None
Traceback (most recent call last):
  File "/app/gazpar2mqtt.py", line 353, in <module>
    run(myParams)
  File "/app/gazpar2mqtt.py", line 146, in run
    myGrdf.getPceDailyMeasures(pce,startDate,endDate)
  File "/app/gazpar.py", line 177, in getPceDailyMeasures
    for measure in measureList[pce.pceId]["releves"]:
TypeError: list indices must be integers or slices, not str
The app has crashed. Are you sure you entered the correct config options?
@yukulehe
Copy link
Owner

yukulehe commented Dec 6, 2021

Hello, je regarde

@yukulehe
Copy link
Owner

yukulehe commented Dec 6, 2021

En relançant le script ça refonctionne. Y'avait peut être un souci sur le site GRDF autour de 8h du mat ce matin.
En tout cas merci pour ton retour, je vais blinder le code pour gérer les retours anormaux de l'API GRDF.

@yukulehe
Copy link
Owner

yukulehe commented Dec 6, 2021

@kalw Préviens moi si de ton côté ça refonctionne

This was referenced Dec 6, 2021
@yukulehe
Copy link
Owner

yukulehe commented Dec 6, 2021

Je comprends que ça refonctionne.

@yukulehe yukulehe closed this as completed Dec 6, 2021
@kalw
Copy link
Author

kalw commented Dec 7, 2021

je confirme, top merci pour la reactivité !

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