Backendless Support
 
Answered

Cant register user

Hello guys, I am coding an application in Ruby using the Faraday adapter. When I execute POST request, faraday adapters adds its own header, so the headers of POST looks like this:

{"User-Agent"=>"Faraday v0.14.0", "application-id"=>"B04D050F-9131-884B-FFBE-F3A2EC48B300", "secret-key"=>"XXX", "Content-Type"=>"application/json", "application-type"=>"REST"}

I am pretty sure that my app-id and app-key are allright. However, I am still receiving the error message:

{"code":2002,"message":"Version is disabled or provided wrong application info (application id or secret key)"}

May the added header "User-Agent"=>"Faraday v0.14.0" cause this problem? Thank you

Leave a Comment

Comments (4)

photo
1

Hi,

Are you using v3 or v4 of Backendless?

Anton

photo
1

I am executing the POST request to:

https://api.backendless.com/v4/users/register

according to this logo on the web application of backendless, where I manage my application:

78839d36dff18148c3101ea194694ae3

I have tried all versions from v1 to v4, none of them helped me.

photo
1

I realised I was making the request to wrong url.

photo
1

Yes, in v4 of Backendless the URL would be

  1. https://api.backendless.com/application-id/REST-api-key/users/register

photo