skilion / onedrive

Free Client for OneDrive on Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid API or resource

shayani opened this issue · comments

Suddenly I started to get this errors when I sync my onedrive:

$ onedrive -d
Downloading changes of 536835854B9CA58E!101
HTTP request returned status code 400 (Bad Request)
{
    "error": {
        "code": "invalidRequest",
        "innerError": {
            "client-request-id": "853b45a0-341d-40ff-ba26-b7caf39af88d",
            "date": "2020-12-08T09:43:41",
            "request-id": "853b45a0-341d-40ff-ba26-b7caf39af88d"
        },
        "message": "Invalid API or resource"
    }
}
Downloading changes of 536835854B9CA58E!101
HTTP request returned status code 400 (Bad Request)
{
    "error": {
        "code": "invalidRequest",
        "innerError": {
            "client-request-id": "b6a76d5c-2681-44e5-8a61-ec7e1cca1ede",
            "date": "2020-12-08T09:43:42",
            "request-id": "b6a76d5c-2681-44e5-8a61-ec7e1cca1ede"
        },
        "message": "Invalid API or resource"
    }
}
Downloading changes of 536835854B9CA58E!101
onedrive.OneDriveException@src/onedrive.d(529): HTTP request returned status code 400 (Bad Request)
{
    "error": {
        "code": "invalidRequest",
        "innerError": {
            "client-request-id": "2a82e0cd-d401-4de8-b6ef-c08ead574344",
            "date": "2020-12-08T09:43:42",
            "request-id": "2a82e0cd-d401-4de8-b6ef-c08ead574344"
        },
        "message": "Invalid API or resource"
    }
}
----------------
src/onedrive.d:54 void onedrive.OneDriveApi.checkHttpCode(ref const(std.json.JSONValue)) [0x56007d070204]
src/onedrive.d:477 std.json.JSONValue onedrive.OneDriveApi.perform() [0x56007d06fc64]
src/onedrive.d:398 std.json.JSONValue onedrive.OneDriveApi.get(const(char)[]) [0x56007d06f6a3]
src/onedrive.d:157 std.json.JSONValue onedrive.OneDriveApi.viewChangesById(const(char)[], const(char)[], const(char)[]) [0x56007d06e509]
src/sync.d:164 std.json.JSONValue sync.ChangesDownloader.downloadChanges(const(char)[], const(char)[], const(char)[]) [0x56007d07970b]
src/sync.d:140 void sync.ChangesDownloader.downloadAndApplyChanges(immutable(char)[], const(char)[]) [0x56007d079573]
src/sync.d:127 void sync.ChangesDownloader.downloadAndApplyChanges() [0x56007d079400]
src/sync.d:731 void sync.SyncEngine.applyDifferences() [0x56007d07c7fc]
src/main.d:201 void main.performSync(sync.SyncEngine) [0x56007d0671bb]
src/main.d:126 _Dmain [0x56007d066cd4]

Any idea? I already --resync and also --logout.

@shayani
Please read #518 very carefully and in full in terms of support for this client.

The application crash you are experiencing is correctly handled here: https://github.com/abraunegg/onedrive

As to the cause of this crash, refer to abraunegg/onedrive#1174 and OneDrive/onedrive-api-docs#1408

Thank you 👍