titilambert / pyhydroquebec

DEPRECATED - Get your consumption data from your HydroQuebec account (www.hydroquebec.com)
Apache License 2.0
94 stars 44 forks source link

Empty list of contracts. #69

Open jmspaggi opened 3 years ago

jmspaggi commented 3 years ago

Describe the bug Running pyhydroquebec -u "aaa-bbb@ccc.org" -p "abcde" --list-contracts doesn't return anything. Not even an error. Changing for a bad password throws an authentication error. So login is correct.

To Reproduce Steps to reproduce the behavior:

pyhydroquebec -u "aaa-bbb@ccc.org" -p "abcde" --list-contracts

Expected behavior Get the list of contracts (I have 3)

PyHydroQuebec and Python version last version of PyHydroQuebec (git clone) Python 3.7.6

domolys commented 3 years ago

Same for me (I have 2)

pyhydroquebec -u "xxxxxx@XXXXX.XXX" -p "XXXXXXX" -l -L DEBUG

INFO - pyhydroquebec.customer.00XXXXXX - Fetching summary page

INFO - pyhydroquebec - Selecting customer 00XXXXXX

INFO - pyhydroquebec - Customer 00XXXXXX selected

INFO - pyhydroquebec.customer.00XXXXXX - Customer has no contract

kayrozen commented 3 years ago

I have also 2 contracts and i only see one.

jmspaggi commented 3 years ago

The DEBUG mode gives me similar error.

`2021-05-11 13:49:37,111 - DEBUG - pyhydroquebec - HTTP query https://cl-services.idp.hydroquebec.com/cl/prive/api/v3_0/conversion/codeAcces to get

2021-05-11 13:49:37,736 - INFO - pyhydroquebec - fetching customers

2021-05-11 13:49:37,736 - DEBUG - pyhydroquebec - HTTP query https://cl-services.idp.hydroquebec.com/cl/prive/api/v1_0/relations to get

2021-05-11 13:49:38,004 - INFO - pyhydroquebec.customer.0100793600 - Fetching summary page

2021-05-11 13:49:38,004 - INFO - pyhydroquebec - Selecting customer 0100793600

2021-05-11 13:49:38,005 - DEBUG - pyhydroquebec - HTTP query https://cl-services.idp.hydroquebec.com/cl/prive/api/v3_0/partenaires/infoBase to get

2021-05-11 13:49:38,516 - DEBUG - pyhydroquebec - HTTP query https://cl-ec-spring.hydroquebec.com/portail/prive/maj-session/ to get

2021-05-11 13:49:39,233 - DEBUG - pyhydroquebec - HTTP query https://cl-ec-spring.hydroquebec.com/portail/fr/group/clientele/gerer-mon-compte/ to get

2021-05-11 13:49:40,901 - DEBUG - pyhydroquebec - HTTP query https://cl-ec-spring.hydroquebec.com/portail/fr/group/clientele/portrait-de-consommation to get

2021-05-11 13:49:41,610 - INFO - pyhydroquebec - Customer 0100793600 selected

2021-05-11 13:49:41,611 - DEBUG - pyhydroquebec - HTTP query https://cl-ec-spring.hydroquebec.com/portail/fr/group/clientele/gerer-mon-compte/ to get

2021-05-11 13:49:43,002 - INFO - pyhydroquebec.customer.0100793600 - Customer has no contract

2021-05-11 13:49:43,002 - DEBUG - pyhydroquebec - HTTP query https://cl-ec-spring.hydroquebec.com/portail/fr/group/clientele/portrait-de-consommation to get `

But I clearly have 2 contracts.

heehoo59 commented 3 years ago

Same for me: client.py 152 INFO Log in using XXXXXXXX client.py 231 INFO fetching customers customer.py 49 INFO Fetching summary page client.py 100 INFO Selecting customer XXXXXXXX client.py 130 INFO Customer XXXXXXXXX selected customer.py 67 INFO Customer has no contract

I have two contracts too.

cybdn commented 2 years ago

Same with me … I have two contracts and the scripts always tells me I have no contract.