session-foundation / session-ios

A private messenger for iOS.
https://getsession.org
GNU General Public License v3.0
3 stars 0 forks source link

Restaurant wifi Session says "HTTP request failed with status code: 0" #243

Open shovas opened 3 years ago

shovas commented 3 years ago

Describe the bug

Using Session in a restaurant (Tim Hortons in Canada) and failed to send with error "HTTP request failed with status code: 0"

To reproduce

Send a message with Session in a restaurant (TIm Hortons).

Screenshots or logs

https://i.postimg.cc/kDP7b3VT/20210226-165728960-i-OS.jpg

Smartphone (please complete the following information):

Additional context

N/A

shovas commented 3 years ago

I was wondering if session was hitting non-standard ports, anything besides 80 and 443?

NoMoreNicksLeft commented 3 years ago

I suspect that this is some system that blocks Session's network. My workplace does the same, and I get the same error message. If I turn off wifi, I can get it to work. I actually came here to github to suggest that the workaround/fix for it might be to include a feature that allows turning off wifi for session entirely and using cell as a fallback (iOS lets you turn off cell data per app, but not wifi data per app).

shovas commented 3 years ago

I suspect that this is some system that blocks Session's network. My workplace does the same, and I get the same error message. If I turn off wifi, I can get it to work. I actually came here to github to suggest that the workaround/fix for it might be to include a feature that allows turning off wifi for session entirely and using cell as a fallback (iOS lets you turn off cell data per app, but not wifi data per app).

You think they're blocking Session-specific hosts or ips? That would be weird since Session isn't all that widely known.

But then again, it may speak to the need to decentralize the decentralization. Imho, all new apps should be literally peer-to-peer not pseudo p2p through "decentralized" nodes.

See iris.to for how they do that. You have to use coordinating nodes, but those can be run by everyone, but after that it's all p2p. Funny how napster and bittorrent have basically had it right this whole time.

NoMoreNicksLeft commented 3 years ago

I suspect that they're blocking hosts/IPs, at least where I am. I don't think they're aware of Session, but use someone else's service that just gives them a list of problematic hosts to stay away from. And those dirtbags seem to be aware of esoteric things quite often. That would account for how that restaurant is blocking it too. I doubt Tim Horton's IT staff are aware.

ghost commented 2 years ago

i think that this issue needs more investigation and a better error should be displayed when this problem happen because it is quite confusing, it happened to me when i tried to share a media by using the share button into an other app but this didn't happen when i was texting once in Session (iOS 15.2.1 & Session 1.12.1)

KeeJef commented 1 year ago

Yeah Session will hit several high ports depending on the Service Nodes it communicates with, the default Service Node port is 22021 but it can be specified to be different by the Service Node operator. If the network firewall blocks high ports this may cause issues.