Back

No address Associated with hostname

  • 0
  • Flutter
JAYAKUMAR
24 Jul, 2023, 17:17

getting some issue . mentioned in this thread. Please help me to resolve https://github.com/appwrite/appwrite/discussions/5776#discussioncomment-6518396

TL;DR
User is experiencing an issue with a codebase related to Appwrite functionality. They are unable to share the full code due to restrictions. The issue seems to be with the realtime feature and an error is occurring in the socket_patch.dart file. Some suggestions are made to set breakpoints and check what is being passed. The user is asked to share their updated code and the full stacktrace. Another user points out that the client.setEndpoint() method was not called, which may be causing the issue. The user asks for assistance in resolving the issue and provides a link to the discussion thread. Solution: The user is advised to check if they
Drake
24 Jul, 2023, 17:33

what is your latest code?

the error message indicates you didn't call client.setEndpoint()

JAYAKUMAR
24 Jul, 2023, 17:56

Yes iendpoint is already set . the code snipppet is there in the link https://github.com/appwrite/appwrite/discussions/5776

Drake
24 Jul, 2023, 18:07

would you please share the full stacktrace?

Drake
24 Jul, 2023, 18:07

also, there was something pointed out in the discussion to change...so pleas share the updated code

JAYAKUMAR
24 Jul, 2023, 18:17

NativeSocket.lookup.<anonymous closure> (dart:io-patch/socket_patch.dart:520) <asynchronous gap> (Unknown Source:0) _NativeSocket.staggeredLookup.<anonymous closure>.lookupAddresses.<anonymous closure> (dart:io-patch/socket_patch.dart:0) <asynchronous gap> (Unknown Source:0)

Drake
24 Jul, 2023, 18:30

and your updated code please?

Drake
24 Jul, 2023, 18:30

can you set a breakpoint to see what's being passed around there?

JAYAKUMAR
25 Jul, 2023, 04:14

Hai, the shared code is the updated one . the issue is with the realtime . the error is in socket_patch.dart file lookup method after hitting the code line subscription.stream.listen((event) {

Drake
25 Jul, 2023, 04:16

Try not calling setEndpointRealtime

JAYAKUMAR
25 Jul, 2023, 04:20

that is removed and tested but same issue

Drake
25 Jul, 2023, 04:21

Please share your updated code here

JAYAKUMAR
25 Jul, 2023, 04:24

whatever code i kept was the updated one (appwrite functionality). i may not be able to share the full code due to some restriction. am really sorry for that

Drake
25 Jul, 2023, 04:25

There's little anyone can do troubleshooting code they can't see....

JAYAKUMAR
25 Jul, 2023, 05:29

i will try to extract and create another code base and send it

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