Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Empty list of contracts. #69

Open
jmspaggi opened this issue Apr 15, 2021 · 5 comments
Open

Empty list of contracts. #69

jmspaggi opened this issue Apr 15, 2021 · 5 comments

Comments

@jmspaggi
Copy link

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
Copy link

domolys commented Apr 23, 2021

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
Copy link

I have also 2 contracts and i only see one.

@jmspaggi
Copy link
Author

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
Copy link

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
Copy link

cybdn commented Jan 17, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants