Comments (3)
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.
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.
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)
- ican get collection from web console, but i get it from appwrite_dart trow '404' not found HOT 5
- Why are parameters not strongly typed ? HOT 5
- storage.createFile not working HOT 2
- 🐛 Bug Report: createFloatAttribute() 'toDouble' was called on null. HOT 3
- 🐛 Bug Report: createFloatAttribute() 'AppwriteException: Invalid min: Value must be a valid float (400)' HOT 1
- 🐛 Bug Report: Getting Started in https://github.com/appwrite/sdk-for-dart contains a lot of bugs HOT 10
- 🐛 Bug Report: Functions(client).list return false instead of empty dictionary as response when no variables are set HOT 9
- Update is returning Collection instead of Database HOT 1
- 🚀 Feature: Improve Pub Points on pub.dev HOT 4
- 🐛 Bug Report: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' HOT 2
- 📚 Documentation: Client.call supports ResponseType.bytes but how to respond from server? HOT 2
- 🐛 Bug Report: type '_Map<String, dynamic>' is not a subtype of type 'List<dynamic>' HOT 1
- 🐛 Bug Report: Version 8.0.1 required dart 2.19 which not available as functions runtime. HOT 1
- 🐛 Bug Report: Updating Attributes with Null Default Fails
- 🐛 Bug Report: Cannot set min and max values of numeric attribute to null
- 🚀 Feature: context.res.send(); , 1st parameter accepts only a String . HOT 1
- Question: How do I generate user session? HOT 1
- 🐛 Bug Report: Using Query causes server error HOT 1
- 🐛 Bug Report: dart_appwrite 10.1.0 which depends on http >=0.13.6 <1.0.1
- Upgrade our issue templates to use GitHub issue forms ✍️ HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk-for-dart.