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

Not authorized to execute API request #27

Closed
dasTholo opened this issue Oct 11, 2021 · 1 comment
Closed

Not authorized to execute API request #27

dasTholo opened this issue Oct 11, 2021 · 1 comment

Comments

@dasTholo
Copy link

dasTholo commented Oct 11, 2021

New Error for me

[CRITICAL] robske_110\vwid\api\exception\IDAuthorizationException: "Not authorized to execute API request 'https://www.volkswagen.de/app/authproxy/vw-de/tokens' (httpCode 401)" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/api/API.php" at line 22

Did you have any ideas? Is the Api endpoint change or anything?
I didn't change anything since a few weeks. It was running until a few days.

Here is my log output from the docker container

[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: ID Data Logger
 This program allows you to log data about your Volkswagen ID vehicle. It includes a webpage for seeing current status and history graphs.
-----------------------------------------------------------
 Add-on version: 0.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.5  (aarch64 / odroid-c2)
 Home Assistant Core: 2021.10.3
 Home Assistant Supervisor: 2021.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:38:50] DEBUG: Requested API resource: http://supervisor/services/mysql
[17:38:50] DEBUG: Request method: GET
[17:38:50] DEBUG: Request data: {}
[17:38:50] DEBUG: API HTTP Response code: 200
[17:38:50] DEBUG: API Response: {"result": "ok", "data": {"host": "core-mariadb", "port": 3306, "username": "service", "password": "xxxx", "addon": "core_mariadb"}}
[17:38:51] INFO: No ID View is set, enter without Password
port 
[17:38:51] INFO: Port is set to 
Loading InteractiveWizard...
Loading ConfigWizard...
[17:38:52] INFO: write configfile
{
    "username": "[email protected]",
    "password": "xxxxx",
    "vin": null,
    "base-updaterate": 600,
    "increased-updaterate": 60,
    "db": {
        "host": "core-mariadb",
        "dbname": "iddatalogger",
        "user": "xxxx",
        "password": "xxxx",
        "driver": "mysql"
    },
    "carpic": {
        "viewDirection": "front",
        "angle": "right",
        "flip": true
    },
    "timezone": "Europe\/Berlin",
    "logging": {
        "debug-enable": false,
        "curl-verbose": false,
        "file-enable": false,
        "log-dir": null
    }
[17:38:52] INFO: Starting IDDataLogger...
}Loading Logger...
17:38:52.794162 [INFO] Starting ID DataLogger Version v0.0.6-InDev (e3800353a36c6fa7090eecb3b7fd9804dff1a886)...
Loading Main...
17:38:52.802164 [INFO] Reading config...
17:38:52.802683 [INFO] Connecting to db...
Loading DatabaseConnection...
Loading QueryCreationHelper...
Loading DBmigrator...
Loading CurlWrapper...
Loading API...
Loading CarPictureHandler...
17:38:52.885980 [INFO] Fetching carPicture (this will take a while...)
Loading WebsiteAPI...
Loading LoginInformation...
Loading HTTPUtils...
Loading Form...
Loading IDAPIException...
Loading IDAuthorizationException...
Loading ErrorUtils...
17:38:55.268032 [CRITICAL] robske_110\vwid\api\exception\IDAuthorizationException: "Not authorized to execute API request 'https://www.volkswagen.de/app/authproxy/vw-de/tokens' (httpCode 401)" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/api/API.php" at line 22
17:38:55.268389 [WARNING] Failed to automatically fetch the carPicture! You can substitute data/carPic.png manually.
Loading CarStatusWrittenUpdateReceiver...
Loading ChargeSessionHandler...
17:38:55.289156 [INFO] Building past charge sessions from 2021-10-08 10:31:53...
Loading CarStatusFetcher...
17:38:55.293654 [INFO] Logging in...
Loading MobileAppAPI...
Loading IDLoginException...
17:38:56.614301 [CRITICAL] robske_110\vwid\api\exception\IDLoginException: "Unable to login. Check login information (password)! See FAQ if issue persists. (Could not find location header)" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/api/MobileAppAPI.php" at line 71
17:38:56.614572 [EMERGENCY] CRASHED WHILE STARTING; TRYING TO SHUTDOWN SAFELY
17:38:56.614649 [INFO] Shutting down...
17:38:56.614695 [CRITICAL] Forcibly shutting down while starting!
[cmd] /bin/bash exited 0
@dasTholo
Copy link
Author

Holy cow.....
the updated privacy policies was only at the website. I've only test at the app..

Now its running again!!

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

1 participant