thingsboard / flutter_thingsboard_app

ThingsBoard Mobile Application
https://thingsboard.io/products/mobile/
BSD 3-Clause "New" or "Revised" License
208 stars 155 forks source link

Error while connecting to thingsboard via Flutter App #3

Closed elmehdi-eljair closed 3 months ago

elmehdi-eljair commented 2 years ago

Hi everybody,

I'm getting an error when I launch the flutter mobile app here is the details. The error is produced when I enter my credentials and try to authentificate :

exception = {DioError} DioError [DioErrorType.response]: Http status error [404]\n#0 DioMixin.assureDioError (package:dio/src/dio_mixin.dart:819:20 requestOptions = {RequestOptions} response = {Response} {"timestamp":"2021-07-30T08:54:10.798+00:00","status":404,"error":"Not Found","message":"","path":"/api/dashboard/home/info"} data = {_InternalLinkedHashMap} size = 5 headers = {Headers} cache-control: no-cache, no-store, max-age=0, must-revalidate\ndate: Fri, 30 Jul 2021 08:54:10 GMT\ntransfer-encoding: chunked\nvar requestOptions = {RequestOptions} statusCode = 404 statusMessage = "" extra = {_InternalLinkedHashMap} size = 0 redirects = {_GrowableList} size = 0 isRedirect = false type = {DioErrorType} DioErrorType.response index = 3 _name = "DioErrorType.response" error = "Http status error [404]" _stackTrace = {_StackTrace} reqOpt = {RequestOptions} method = "GET" _headers = {_CompactLinkedCustomHashMap} {Content-Type: application/json, X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJlbG1laGRpLmVsamFpci4xQGdtYWlsLmNvbSIsIn sendTimeout = 0 receiveTimeout = 0 _defaultContentType = "application/json" responseType = {ResponseType} ResponseType.json validateStatus = {_Closure} Closure: (int?) => bool receiveDataWhenStatusError = true extra = {_InternalLinkedHashMap} size = 4 followRedirects = true maxRedirects = 5 requestEncoder = null responseDecoder = null listFormat = {ListFormat} ListFormat.multi baseUrl = "http://34.69.18.85:8080" queryParameters = {_InternalLinkedHashMap} size = 0 connectTimeout = 0 data = null path = "/api/dashboard/home/info" cancelToken = null onReceiveProgress = null onSendProgress = null this = {DioForNative} cancelToken = null responseBody = {ResponseBody} e = {DioError} DioError [DioErrorType.response]: Http status error [404]\n#0 DioMixin.assureDioError (package:dio/src/dio_mixin.dart:819:20

ybeshkarov commented 3 months ago

This issue is rather old and will be closed. Please reopen it if it remains relevant to you.