Create Customer - Cloud API

Hi

I was wondering if something recently changed with the create customer no_password flag. I am using the cloud api to create customers from my server. This code has been working for weeks now, but today I seem to get issues when trying to create a customer with no password and the no_password flag set to true. The customer does get created as a second request to the api returns with a message that the exists. I am also not having issues when creating a customer with a password. Below is the error message.

Thanks in advance

{
    "ok": false,
    "code": 400,
    "error": {
        "name": "OAuth2Error",
        "message": "No valid scopes",
        "stack": "(...)",
        "headers": {
            "Cache-Control": "no-store",
            "Pragma": "no-cache"
        },
        "code": 503,
        "error": "server_error",
        "error_description": "server_error"
    }
}

I can confirm the issue aswell. It can be easily reproduce by using postman to make post request tp https://api.particle.io/v1/products/{productSlugOrId}/customers

{
    "ok": false,
    "code": 400,
    "error": {
        "name": "OAuth2Error",
        "message": "No valid scopes",
        "stack": "(...)",
        "headers": {
            "Cache-Control": "no-store",
            "Pragma": "no-cache"
        },
        "code": 503,
        "error": "server_error",
        "error_description": "server_error"
    }
}

Also, other API like https://api.particle.io/oauth/token is returning server error

{
    "error": "server_error",
    "error_description": "server_error"
}

We just deployed a fix for this issue. Could you confirm it’s working now?

I just tested it this morning and it seems to work fine again. Thank you so much for the quick fix and response.

1 Like

@Suda It works fine now. Thanks.

1 Like