flutter_thingsboard_pe_app icon indicating copy to clipboard operation
flutter_thingsboard_pe_app copied to clipboard

Session expired! on Login Page

Open ockum12 opened this issue 3 years ago • 3 comments

I got a following messages.

E/FrameEvents(15376): updateAcquireFence: Did not find frame. D/EGL_emulation(15376): app_time_stats: avg=162.49ms min=100.26ms max=394.59ms count=7 D/EGL_emulation(15376): app_time_stats: avg=161.49ms min=86.15ms max=409.14ms count=7 I/flutter (15376): ERROR ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (15376): ERROR │ ThingsboardError: message: [Session expired!], errorCode: 11, status: null I/flutter (15376): ERROR │ #0 toThingsboardError package:thingsboard_pe_client/…/error/_thingsboard_error_handler_io.dart:89 I/flutter (15376): ERROR │ #1 HttpInterceptor._handleError package:thingsboard_pe_client/…/interceptor/http_interceptor.dart:201 I/flutter (15376): ERROR │ #2 HttpInterceptor._refreshTokenAndRetry package:thingsboard_pe_client/…/interceptor/http_interceptor.dart:142 I/flutter (15376): ERROR │ I/flutter (15376): ERROR │ I/flutter (15376): ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (15376): ERROR │ #0 ThingsboardClient.get package:thingsboard_pe_client/src/thingsboard_client_base.dart:250 I/flutter (15376): ERROR │ #1 I/flutter (15376): ERROR │ #2 WhiteLabelingService.getWhiteLabelParams package:thingsboard_pe_client/…/service/white_labeling_service.dart:28 I/flutter (15376): ERROR │ #3 I/flutter (15376): ERROR │ #4 WlService._loadUserWhiteLabelingParams package:thingsboard_app/…/services/wl_service.dart:252 I/flutter (15376): ERROR │ #5 I/flutter (15376): ERROR │ #6 WlService.updateWhiteLabeling package:thingsboard_app/…/services/wl_service.dart:169 I/flutter (15376): ERROR │ #7 I/flutter (15376): ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (15376): ERROR │ ⛔ Error: ThingsboardError: message: [Session expired!], errorCode: 11, status: null I/flutter (15376): ERROR │ ⛔ #0 toThingsboardError package:thingsboard_pe_client/…/error/_thingsboard_error_handler_io.dart:89 I/flutter (15376): ERROR │ ⛔ #1 HttpInterceptor._handleError package:thingsboard_pe_client/…/interceptor/http_interceptor.dart:201 I/flutter (15376): ERROR │ ⛔ #2 HttpInterceptor._refreshTokenAndRetry package:thingsboard_pe_client/…/interceptor/http_interceptor.dart:142 I/flutter (15376): ERROR │ ⛔ I/flutter (15376): ERROR │ ⛔ I/flutter (15376): ERROR └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

ockum12 avatar Dec 27 '22 01:12 ockum12

I have the same problem, did you find a solution?

ezeroldan24 avatar Dec 27 '22 11:12 ezeroldan24

I think the cause of this problem and that of issue 27 are the same. This is because the dart client does not recognize the changed Asset model(Asset_profile) in the process of parsing the allowedPermission json received through the API, resulting in an exception, and forced logout when the exception occurs.

Try to change the version of thingsboard_pe_client from 1.0.4 to 1.0.5 in pubspec.yaml and recompile the project.

Seungkoo avatar Dec 27 '22 18:12 Seungkoo

works for me.. same as in issue #27

badril1978 avatar Dec 28 '22 08:12 badril1978