• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

[V4 Beta 8] API uploading always returns 400 error

zhbear

Chevereto Member
I am trying POST method to call https://my_server/api/1/upload. X-API-Key is included in headers, and the image is specified in the POST body. The problem is that either I specify the image by web url or a file object, the server always returns the following:

JSON:
{
    "status_code": 400,
    "error": {
        "message": "ctype_digit(): Argument of type null will be interpreted as string in the future",
        "code": 0
    },
    "status_txt": "Bad Request"
}

This problem only arises on V4, while I can upload images via API v1 on V3.
 
That's a bug on V4 API, patch will be released for V4.0.0.beta.9.
 
Back
Top