• 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

API Error

Status
Not open for further replies.

anotherp

Chevereto Member
I have been working on a Chrome extension. Everything was going fine and then suddenly none of the uploads were working.

If I goto http://picgur.org/api/1 I get this error

{"status_code":400,"error":{"message":"Invalid API v1 key.","code":100,"context":"Exception"},"status_txt":"Bad Request"}

Any idea?
 
PHP:
        // Change CHV\getSetting('api_v1_key') to 'something' if you want to use 'something' as key
        if(!G\timing_safe_compare(CHV\getSetting('api_v1_key'), $_REQUEST['key'])) {
            throw new Exception("Invalid API v1 key.", 100);
        }
 
Status
Not open for further replies.
Back
Top