Back

[SOLVED] Connection failed (0)

  • 0
  • Self Hosted
  • Flutter
rafaat
14 Dec, 2023, 22:07

can not connect to appwrite. using digital oceans version: 1.4.13 platform macos, trying to connect to macos I didn't have a problem on windows.

TL;DR
The user was experiencing a connection failed (0) error while trying to connect to their MacOS app. They were unable to connect to the internet inside the app and were unsure where to allow the connection. The solution suggested was to check if they were calling `client.setSelfSigned()` and using https, and to confirm internet connectivity by requesting a URL like <https://google.com>. Another suggestion was to ensure that the URL they were using had the protocol `https://` and not just an IP address. The typo in the code was also pointed out. It was also mentioned that SSL/TLS certificate issues could be causing the error. Finally
Drake
14 Dec, 2023, 22:13

Is Internet connectivity allowed for your macos app?

Maybe you can try testing an HTTP call to something else to verify.

fafa
14 Dec, 2023, 22:26

Hey, you are also using https with an IP, this is a common mistake and will 99% of the time give an error due to SSL/TLS certificate issues. Might that be it?

fafa
14 Dec, 2023, 22:27

You also have a typo (i think) in your code (side note), as it's called "endpoint", not "endpont" 😄

rafaat
15 Dec, 2023, 00:22

I tried this mr Steven and its just the same, its just been a week that I'm using mac and I have to deploy it for macos, so Im not really sure how solve that

rafaat
15 Dec, 2023, 00:24

hey bro, thanks for your note, I have tried your method it gives me this error. what explain what do you mean by TSL/SSL, I don't have information about it?

Drake
15 Dec, 2023, 00:28

I meant try requesting https://google.com or https://jsonplaceholder.typicode.com/todos/1 to confirm you have internet connectivity.

Drake
15 Dec, 2023, 00:28

maybe this is because you're missing the protocol (https://)?

rafaat
15 Dec, 2023, 00:40

I think you are right I can’t even connect to internet inside the app, I even tried network image provider it didn’t work. But I dont know where to allow that connection, is it about firewall?

Drake
15 Dec, 2023, 00:54

Also, are you calling client.setSelfSigned()? and using https?

rafaat
15 Dec, 2023, 01:00

I was searching hours I couldn’t see that. You are really a great man, thanks 🙏 @Steven

Drake
15 Dec, 2023, 01:01

you need to work on your search skills 😜

rafaat
15 Dec, 2023, 01:11

Holly shit, what I was even doing 😂 I was really worried I have to deliver the app next week. Much appreciated

Drake
15 Dec, 2023, 01:23

[SOLVED] Connection failed (0)

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