flutter_thingsboard_pe_app icon indicating copy to clipboard operation
flutter_thingsboard_pe_app copied to clipboard

Cannot login...

Open AngeLinuX99 opened this issue 3 years ago • 5 comments

Hi,

When Im login from android app to my platform, it never logs in and bring me back to login screen again. No messages, no errors, nothing... can you help me to fix this issue ?


An Observatory debugger and profiler on M2101K9AG is available at: http://127.0.0.1:51639/VGPNiLyLgtA=/ The Flutter DevTools debugger and profiler on M2101K9AG is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:51639/VGPNiLyLgtA=/ I/flutter ( 6014): ERROR ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 6014): ERROR │ ThingsboardError: message: [Unsupported ThingsBoard platform version: 3.3.4.1PE], errorCode: 2, status: null I/flutter ( 6014): ERROR │ #0 toThingsboardError (package:thingsboard_pe_client/src/error/_thingsboard_error_handler_io.dart:89:18) I/flutter ( 6014): ERROR │ #1 ThingsboardClient.init (package:thingsboard_pe_client/src/thingsboard_client_base.dart:232:13) I/flutter ( 6014): ERROR │ I/flutter ( 6014): ERROR │ #2 TbContext.init (package:thingsboard_app/core/context/tb_context.dart:187:7) I/flutter ( 6014): ERROR │ I/flutter ( 6014): ERROR │ #3 HasTbContext.initTbContext (package:thingsboard_app/core/context/tb_context.dart:640:5) I/flutter ( 6014): ERROR │ I/flutter ( 6014): ERROR │ I/flutter ( 6014): ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 6014): ERROR │ #0 ThingsboardClient.init (package:thingsboard_pe_client/src/thingsboard_client_base.dart:232:7) I/flutter ( 6014): ERROR │ #1 I/flutter ( 6014): ERROR │ #2 TbContext.init (package:thingsboard_app/core/context/tb_context.dart:187:7) I/flutter ( 6014): ERROR │ #3 I/flutter ( 6014): ERROR │ #4 HasTbContext.initTbContext (package:thingsboard_app/core/context/tb_context.dart:640:5) I/flutter ( 6014): ERROR │ #5 I/flutter ( 6014): ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 6014): ERROR │ ⛔ Failed to init tbContext: ThingsboardError: message: [Unsupported ThingsBoard platform version: 3.3.4.1PE], errorCode: 2, status: null I/flutter ( 6014): ERROR │ ⛔ #0 toThingsboardError (package:thingsboard_pe_client/src/error/_thingsboard_error_handler_io.dart:89:18) I/flutter ( 6014): ERROR │ ⛔ #1 ThingsboardClient.init (package:thingsboard_pe_client/src/thingsboard_client_base.dart:232:13) I/flutter ( 6014): ERROR │ ⛔ I/flutter ( 6014): ERROR │ ⛔ #2 TbContext.init (package:thingsboard_app/core/context/tb_context.dart:187:7) I/flutter ( 6014): ERROR │ ⛔ I/flutter ( 6014): ERROR │ ⛔ #3 HasTbContext.initTbContext (package:thingsboard_app/core/context/tb_context.dart:640:5) I/flutter ( 6014): ERROR │ ⛔ I/flutter ( 6014): ERROR │ ⛔ I/flutter ( 6014): ERROR └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── D/DecorView: onWindowFocusChanged hasWindowFocus false

AngeLinuX99 avatar Nov 04 '22 09:11 AngeLinuX99

Hi @AngeLinuX99 , I have just the same problem. I see in the logs Unsupported ThingsBoard platform version: 3.3.4.1PE but it should be possible from 3.3.0. I'm also running version 3.3.4.1PE. Did you get it working?

bramkennis avatar Nov 24 '22 14:11 bramkennis

@AngeLinuX99 @bramkennis I am having the same problem. I cannot login after entering correct login details on the app and later on it does show the same unsupported version error. Please advise if you guys have a solution. Thanks.

MM-06 avatar Dec 12 '22 14:12 MM-06

Any update on this ? I'm also facing same issue after changing thingsBoardApiEndpoint from "https://demo.thingsboard.io" to my machine IP. Please help here.

Aviijit avatar Feb 02 '23 03:02 Aviijit

same issue here

Maxwh21 avatar Feb 06 '23 10:02 Maxwh21

Same issue here. Running PE 3.4.1.

Tried to clone the code today and got this issue. Did it about 1 month ago, and the APK i built that time is still working, but not the on that i build on the newly cloned git repository.

jh83 avatar Feb 22 '23 12:02 jh83

Hello @AngeLinuX99,

I will close this issue since a significant amount of time has passed since your initial query. However, if the issue is still relevant, please feel free to reopen it and provide additional information, such as the mobile app console output.

Thanks!

ybeshkarov avatar May 29 '24 13:05 ybeshkarov