Skip to content
Back

Breaking errors in Flutter new version, which cause errors while connecting to Appwrite Services.

  • 0
  • Flutter
Hassanmrwt
20 May, 2023, 19:04

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.

TL;DR
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
20 May, 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
20 May, 2023, 19:33

first snippet throws error

Hassanmrwt
20 May, 2023, 19:34

while the second also throws Appwrite Exception. First error is totally unknown with zero information about

Maniac_Fighter
20 May, 2023, 19:40

hmm, it shouldn't happen. Can you share the full stacktrace and relevant code

Hassanmrwt
20 May, 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
20 May, 2023, 20:01

Did you make sure to enable internet access for your app?

Drake
20 May, 2023, 20:01

What's the host value right here at the breakpoint?

Hassanmrwt
20 May, 2023, 20:07

Yes internet is enabled

Hassanmrwt
20 May, 2023, 20:08

was working fine today unttil updated to flutter new vversion

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more