Skip to content

Handling 500 responses #6

@sannremy

Description

@sannremy

Hi @ooii

Thanks for this library, super useful! Actually found it through Home Assistant integrations :)

I got an error when trying to pull my data: Oct. 1st, no data yet. I've added debug lines and it looks like Suez's website returns a 500 when there is no data to show.
It ends the process to return data of previous months.

$ pysuez -u EMAIL -p PASSWORD -c ID

Request URL: https://www.toutsurmoneau.fr/mon-compte-en-ligne/statJData/2020/10/ID
Response HTTP code: <Response [500]>

Issue with this month data

I know it's a bug on Suez's website, but I think the library should handle those error cases.
Happy to help and to create a PR! :)

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions