Can't login User Service API

Backendless encountered an error while handling the request. An internal trouble ticket with ID E2696796-0939-EA2B-FF29-AD6D22FD4800 has been created and we will be investigating the issue.
class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader ‘bootstrap’)
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader ‘bootstrap’)
at controllers.Users.lambda$login$11(Users.java:306)
at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:75)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

Hello @Le_Chi_Hung,

please describe your issue, how can we reproduce it?

it doesn’t work

string login = “{"login" : "chihungpr@gmail.com", "password" : 123456 }”;

        var content = new StringContent(login, Encoding.UTF8, "application/json");

        HttpClient httpClient = new HttpClient();

        HttpResponseMessage res = await httpClient.PostAsync("https://api.backendless.com/38B73A93-FFCB-154C-FFB3-B9650BF06100/AE93F59F-DDDE-4722-92BB-168D3783EF48/users/login", content);
        string json = await res.Content.ReadAsStringAsync();

What’s your app id?

1 Like

app id =38B73A93-FFCB-154C-FFB3-B9650BF06100

Password should be a string type:

string login = “{"login" : "chihungpr@gmail.com", "password" : "123456" }”;

Regards,
Stanislaw

Can I use 1 user to login for unlimited users to read data from the copy

Hello @Le_Chi_Hung,

Could you please clarify what do you mean by

1 user to login for unlimited users to read data from the copy

Regards,
Olha

I login user : apploginbackend@gmail.com password abc for 1 million devices same account,
to read data from table “ORDER”
So is there an error?

In case you want to login with similar credentials from different devices, you can enable multiple logins in the Users tab:

Please check this article and this video tutorial.

Maximum number of simultaneous logins for an account: 2000
it is limited to 2000
Can I raise it to 10000

Hello @Le_Chi_Hung

No, it is not possible.
Are you sure you need it? Maybe there is another way for your case.

Regards

yes i need it. please guide me

@Le_Chi_Hung

Another way is without “Maximum number of simultaneous logins for an account“ increasing.

Regards


my problem is still not solved
please help me how to login on multiple devices with one account and the number of simultaneous logins > 10000

I have solved the problem. thank you