Giter Club home page Giter Club logo

Comments (3)

SalehHub avatar SalehHub commented on May 18, 2024

Tried to install the docker on my server and used the custom domain feature to obtain a TLS, the dashboard works fine with https active, but on the Flutter side is prints the following error:

before setting an Api Key:

E/flutter ( 7039): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: DioError [DioErrorType.RESPONSE]: Http status error [403]
E/flutter ( 7039): #0      DioMixin._request._errorInterceptorWrapper.<anonymous closure> 
package:dio/src/dio.dart:869
E/flutter ( 7039): <asynchronous suspension>
E/flutter ( 7039): #1      DioMixin._request._errorInterceptorWrapper.<anonymous closure> (package:dio/src/dio.dart)
E/flutter ( 7039): #2      _rootRunUnary  (dart:async/zone.dart:1192:38)
E/flutter ( 7039): #3      _CustomZone.runUnary  (dart:async/zone.dart:1085:19)
E/flutter ( 7039): #4      _FutureListener.handleError  (dart:async/future_impl.dart:159:20)
E/flutter ( 7039): #5      Future._propagateToListeners.handleError  (dart:async/future_impl.dart:694:47)
E/flutter ( 7039): #6      Future._propagateToListeners  (dart:async/future_impl.dart:715:24)
E/flutter ( 7039): #7      Future._completeError  (dart:async/future_impl.dart:534:5)
E/flutter ( 7039): #8      _SyncCompleter._completeError  (dart:async/future_impl.dart:58:12)
E/flutter ( 7039): #9      _Completer.completeError  (dart:async/future_impl.dart:30:5)
E/flutter ( 7039): #10     Future.any.<anonymous closure>  (dart:async/future.dart:464:45)
E/flutter ( 7039): #11     _rootRunBinary  (dart:async/zone.dart:1204:38)
E/flutter ( 7039): #12     _CustomZone.runBinary  (dart:async/zone.dart:1093:19)
E/flutter ( 7039): #13     _FutureListener.handleError  (dart:async/future_impl.dart:155:20)
E/flutter ( 7039): #14     Future._propagateToListeners.handleError  (dart:async/future_impl.dart:694:47)
E/flutter ( 7039): #15     Future._propagateToListeners  (dart:async/future_impl.dart:715:24)
E/flutter ( 7039): #16     Future._completeError  (dart:async/future_impl.dart:534:5)
E/flutter ( 7039): #17     _AsyncAwaitCompleter.completeError  (dart:async-patch/async_patch.dart:43:15)
E/flutter ( 7039): #18     DioMixin._dispatchRequest (package:dio/src/dio.dart)
E/flutter ( 7039): <asynchronous suspension>
E/flutter ( 7039): #19     DioMixin._request._interceptorWrapper.<anonymous closure>.<anonymous closure>.<anonymous closure> 
package:dio/src/dio.dart:849
E/flutter ( 7039): #20     DioMixin.checkIfNeedEnqueue 
package:dio/src/dio.dart:1117
E/flutter ( 7039): #21     DioMixin._request._interceptorWrapper.<anonymous closure>.<anonymous closure> 
package:dio/src/dio.dart:846
E/flutter ( 7039): #22     new Future.<anonymous closure>  (dart:async/future.dart:176:37)
E/flutter ( 7039): #23     _rootRun  (dart:async/zone.dart:1180:38)
E/flutter ( 7039): #24     _CustomZone.run  (dart:async/zone.dart:1077:19)
E/flutter ( 7039): #25     _CustomZone.runGuarded  (dart:async/zone.dart:979:7)
E/flutter ( 7039): #26     _CustomZone.bindCallbackGuarded.<anonymous closure>  (dart:async/zone.dart:1019:23)
E/flutter ( 7039): #27     _rootRun  (dart:async/zone.dart:1184:13)
E/flutter ( 7039): #28     _CustomZone.run  (dart:async/zone.dart:1077:19)
E/flutter ( 7039): #29     _CustomZone.bindCallback.<anonymous closure>  (dart:async/zone.dart:1003:23)
E/flutter ( 7039): #30     Timer._createTimer.<anonymous closure>  (dart:async-patch/timer_patch.dart:23:15)
E/flutter ( 7039): #31     _Timer._runTimers  (dart:isolate-patch/timer_impl.dart:398:19)
E/flutter ( 7039): #32     _Timer._handleMessage  (dart:isolate-patch/timer_impl.dart:429:5)
E/flutter ( 7039): #33     _RawReceivePortImpl._handleMessage  (dart:isolate-patch/isolate_patch.dart:168:12)
E/flutter ( 7039):

after setting an Api Key:

E/flutter ( 7039): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: DioError [DioErrorType.RESPONSE]: Http status error [401]
E/flutter ( 7039): #0      DioMixin._request._errorInterceptorWrapper.<anonymous closure> 
package:dio/src/dio.dart:869
E/flutter ( 7039): <asynchronous suspension>
E/flutter ( 7039): #1      DioMixin._request._errorInterceptorWrapper.<anonymous closure> (package:dio/src/dio.dart)
E/flutter ( 7039): #2      _rootRunUnary  (dart:async/zone.dart:1192:38)
E/flutter ( 7039): #3      _CustomZone.runUnary  (dart:async/zone.dart:1085:19)
E/flutter ( 7039): #4      _FutureListener.handleError  (dart:async/future_impl.dart:159:20)
E/flutter ( 7039): #5      Future._propagateToListeners.handleError  (dart:async/future_impl.dart:694:47)
E/flutter ( 7039): #6      Future._propagateToListeners  (dart:async/future_impl.dart:715:24)
E/flutter ( 7039): #7      Future._completeError  (dart:async/future_impl.dart:534:5)
E/flutter ( 7039): #8      _SyncCompleter._completeError  (dart:async/future_impl.dart:58:12)
E/flutter ( 7039): #9      _Completer.completeError  (dart:async/future_impl.dart:30:5)
E/flutter ( 7039): #10     Future.any.<anonymous closure>  (dart:async/future.dart:464:45)
E/flutter ( 7039): #11     _rootRunBinary  (dart:async/zone.dart:1204:38)
E/flutter ( 7039): #12     _CustomZone.runBinary  (dart:async/zone.dart:1093:19)
E/flutter ( 7039): #13     _FutureListener.handleError  (dart:async/future_impl.dart:155:20)
E/flutter ( 7039): #14     Future._propagateToListeners.handleError  (dart:async/future_impl.dart:694:47)
E/flutter ( 7039): #15     Future._propagateToListeners  (dart:async/future_impl.dart:715:24)
E/flutter ( 7039): #16     Future._completeError  (dart:async/future_impl.dart:534:5)
E/flutter ( 7039): #17     _AsyncAwaitCompleter.completeError  (dart:async-patch/async_patch.dart:43:15)
E/flutter ( 7039): #18     DioMixin._dispatchRequest (package:dio/src/dio.dart)
E/flutter ( 7039): <asynchronous suspension>
E/flutter ( 7039): #19     DioMixin._request._interceptorWrapper.<anonymous closure>.<anonymous closure>.<anonymous closure> 
package:dio/src/dio.dart:849
E/flutter ( 7039): #20     DioMixin.checkIfNeedEnqueue 
package:dio/src/dio.dart:1117
E/flutter ( 7039): #21     DioMixin._request._interceptorWrapper.<anonymous closure>.<anonymous closure> 
package:dio/src/dio.dart:846
E/flutter ( 7039): #22     new Future.<anonymous closure>  (dart:async/future.dart:176:37)
E/flutter ( 7039): #23     _rootRun  (dart:async/zone.dart:1180:38)
E/flutter ( 7039): #24     _CustomZone.run  (dart:async/zone.dart:1077:19)
E/flutter ( 7039): #25     _CustomZone.runGuarded  (dart:async/zone.dart:979:7)
E/flutter ( 7039): #26     _CustomZone.bindCallbackGuarded.<anonymous closure>  (dart:async/zone.dart:1019:23)
E/flutter ( 7039): #27     _rootRun  (dart:async/zone.dart:1184:13)
E/flutter ( 7039): #28     _CustomZone.run  (dart:async/zone.dart:1077:19)
E/flutter ( 7039): #29     _CustomZone.bindCallback.<anonymous closure>  (dart:async/zone.dart:1003:23)
E/flutter ( 7039): #30     Timer._createTimer.<anonymous closure>  (dart:async-patch/timer_patch.dart:23:15)
E/flutter ( 7039): #31     _Timer._runTimers  (dart:isolate-patch/timer_impl.dart:398:19)
E/flutter ( 7039): #32     _Timer._handleMessage  (dart:isolate-patch/timer_impl.dart:429:5)
E/flutter ( 7039): #33     _RawReceivePortImpl._handleMessage  (dart:isolate-patch/isolate_patch.dart:168:12)
E/flutter ( 7039):

Dio response:

{"message":"[email protected] (role: application) missing scope (public)","code":401,"file":"/usr/share/nginx/html/app/app.php","line":175,"trace":[{"function":"{closure}"},{"file":"/usr/share/nginx/html/vendor/utopia-php/framework/src/App.php","line":387,"function":"call_user_func_array"},{"file":"/usr/share/nginx/html/app/app.php","line":906,"function":"run","class":"Utopia\\App","type":"->"},{"file":"/usr/share/nginx/html/public/index.php","line":27,"args":["/usr/share/nginx/html/app/app.php"],"function":"include"}],"version":"0.5.3"}

from sdk-for-dart.

eldadfux avatar eldadfux commented on May 18, 2024

Hey! First of all, thank you for the great feedback ❤️.

About your issue, we have just pushed this SDK to Github ~2 days ago to test it against the dev version of Appwrite server. This SDK isn't designed to work with version 0.5.3 or lower of Appwrite.

We are working on this branch to add support for Flutter on the server-side:
https://github.com/appwrite/appwrite/tree/feature--flutter-support

Work on this is almost done, but we still need to add docs and tutorials on appwrite.io before merging to master and releasing a new version.

If you like to help with some beta-testing, I could help you setup the latest Appwrite version from the source-code. You can also reach out on our Discord channel, where we also share updates about flutter support progress. Discord invite URL is here: https://discord.gg/GSeTUeA

from sdk-for-dart.

SalehHub avatar SalehHub commented on May 18, 2024

If you like to help with some beta-testing, I could help you setup the latest Appwrite version from the source-code.

Yes, that's would be great. Thanks

from sdk-for-dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.