• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • 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