Skip to content

[FEATURE] Retry authentication when getting error 403 #2

@TheRealOne78

Description

@TheRealOne78

Add a parameter in the config file to try to authenticate n times before shutting down the server for invalid credentials. If valid, reset counter to 0.

This is due to renault-api's poor authentication management that randomly returns 301, even though the credentials are valid.

NTFY log example:

💻 [SERVER SHUTDOWN] Unexpected error - SHUTTING DOWN

[SERVER SHUTDOWN] An unexpected error occurred

**********************
('err.func.403', 'Access is denied for this resource')
**********************

[2024/03/26  - 00:28:18] Shutting down the server!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions