Back

[SOLVED] socket exception error

  • 1
  • Android
  • Flutter
R2
25 Oct, 2023, 17:03

I did. I followed the documentation

TL;DR
User was experiencing a socket exception error in their Flutter app. They initially tried various solutions and tried running the app in both a self-hosted and cloud environment. Another user shared some code triggering the error. Later, the user discovered that the issue was with their version of Flutter, specifically version 3.13.*. Upgrading Flutter resolved the issue.
D5
25 Oct, 2023, 17:08

In android, did you have added internet access label to your android manifest file?

R2
25 Oct, 2023, 17:24

Yes

Drake
25 Oct, 2023, 17:46

maybe you can try a simple http request to google or something else to confirm you have internet access

R2
25 Oct, 2023, 20:10

I already figured out the problem.thanks for your assistance. Really appreciate

Drake
25 Oct, 2023, 20:12

And the problem was?

R2
25 Oct, 2023, 20:12

The problem was my version of flutter..I finally say a github thread of people with similar problem using flutter 3.13.*

R2
25 Oct, 2023, 20:12

All i needed to do was upgrade

R2
25 Oct, 2023, 20:13

Saw**

D5
25 Oct, 2023, 20:13

Oh, so that solved the issue?

R2
25 Oct, 2023, 20:13

Yes

Drake
25 Oct, 2023, 20:14

Wow how annoying

Drake
25 Oct, 2023, 20:14
D5
25 Oct, 2023, 20:14

Didn't knew that. Glad to hear it's solved <:appwriteparty:946072712915341333>

R2
25 Oct, 2023, 20:14

Spent yesterday looking for a solution...if I had just took my time I might have found out sooner 😁

D5
25 Oct, 2023, 20:14

[SOLVED] socket exception error

nebukadnezar
15 Nov, 2023, 20:51

hey @R2 I have the same issue but a new flutter version did not solve it. Could it be an Appwrite thing because I'm having doubts

nebukadnezar
15 Nov, 2023, 20:56

@D5 This is the code that triggers the err:

TypeScript
Future<List<Document>> getNotes() async {
    DocumentList allNotes = await appwriteDatabase.listDocuments(
      databaseId: dojoDatabaseId,
      collectionId: noteCollectionId,
      queries: [
        Query.select([
          'subject',
          'description',
          'date',
          'id',
          //Permission is tijdelijk vanwege een bug in de SDK
          '\$permissions'
        ]),
        Query.orderDesc('date'),
      ],
    );
    return allNotes.documents;
  }

the await listDocuments triggers it and crashes the app

D5
15 Nov, 2023, 20:57

Could you please create an issue for this?

D5
15 Nov, 2023, 20:58

Also if you're using cloud, it's down so you will need to wait

nebukadnezar
15 Nov, 2023, 21:00

It's selfhosted but I tried on cloud and it gives the same err

nebukadnezar
15 Nov, 2023, 21:00

Can you explain how I should do that?

D5
15 Nov, 2023, 21:01

I'm the <#1072905050399191082> channel, click the + button located in the bottom down corner of the screen and then add all details and at least one tag/label to the issue

nebukadnezar
15 Nov, 2023, 21:07

I don't see a + button in the bottom right. Do you mean by any chance that I should make a new post about this?

D5
15 Nov, 2023, 21:07

Sent you a DM

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