Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Invalid API or resource #523

Closed
shayani opened this issue Dec 8, 2020 · 2 comments
Closed

Invalid API or resource #523

shayani opened this issue Dec 8, 2020 · 2 comments

Comments

@shayani
Copy link

shayani commented Dec 8, 2020

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.

@abraunegg
Copy link

@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

@shayani
Copy link
Author

shayani commented Dec 8, 2020

Thank you 👍

@shayani shayani closed this as completed Dec 8, 2020
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

2 participants