connection like Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your Appwrite Endpoint .setProject('645923b923fc4fbfee9b'); // Your project ID` to Appwrite throws error as shown in image. While doing like this, ` Client client = Client() .setEndpoint('67.207.78.138') // Your Appwrite Endpoint .setProject('645923b923fc4fbfee9b'); // Your project ID this throws Appwrite exception No host specified in URI.
Summary
Title: Errors with Flutter new version causing issues with Appwrite Services
- User encountered errors after updating to the new version of Flutter
- Internet access is enabled
- The host value needs to be checked at the breakpoint
- User shared full details and a screenshot of the exception message
- Requested user to share the full stacktrace and relevant code for further investigation
- Unclear which snippet is causing the error, but one is expected due to missing http/https
- Provided two snippets of code, one with Appwrite endpoint and one with IP address
- First snippet throws an unknown error, while the second one throws an
Maniac_Fighter
May 20, 2023, 19:23
Which one throws the error ?
First snippet or the second one. Second one is expected cause it does start with http/https
Hassanmrwt
Rank 2: Process
May 20, 2023, 19:33
first snippet throws error
Hassanmrwt
Rank 2: Process
May 20, 2023, 19:34
while the second also throws Appwrite Exception. First error is totally unknown with zero information about
Maniac_Fighter
May 20, 2023, 19:40
hmm, it shouldn't happen. Can you share the full stacktrace and relevant code
Hassanmrwt
Rank 2: Process
May 20, 2023, 19:44
I have shared full details in start. When connecting to appwrite server, the exception in image is thrown, which has detailed information in.
Drake
Admin
May 20, 2023, 20:01
Did you make sure to enable internet access for your app?
Drake
Admin
May 20, 2023, 20:01
What's the host value right here at the breakpoint?
Hassanmrwt
Rank 2: Process
May 20, 2023, 20:07
Yes internet is enabled
Hassanmrwt
Rank 2: Process
May 20, 2023, 20:08
was working fine today unttil updated to flutter new vversion