ParticulaCode / FoundryVTT-GoDice

MIT License
2 stars 7 forks source link

GoDice not connected (apparently a websocket error, in spite of correct config?) #25

Closed coffiarts closed 5 months ago

coffiarts commented 5 months ago

This is what I am experiencing consistently: image Inside the GoDice app on my Android tablet, all 6 dice are connected and working fine (rolls in GoDIce's Foundry VTT view are regognized as expected). In my understanding, it indicates that my GoDice and Foundry are correctly set up, but something weird's going on with my websocket connection: image image

What are potential reasons for this that I can't see?

Details about my setup:

coffiarts commented 5 months ago

Addendum: Having the exact same issue when running my whole thing online in Forge (with no local WiFi connections or self-signed certificates or whatever involved).

I ensured that both settings recommended by GoDice are applied properly:

But still the same error messages.

coffiarts commented 5 months ago

Some more details: The error message in my consoles strangely looks like there was a line break in the IP setting! image However, my ingame settings looks very correct to me ... image ... as well as my entry in the local hosts file, which I have added by following instructions under https://drive.google.com/file/d/15Ksa4JAfPP_M0fW2-32sEUHTvPg5ybz1/view: image Also, my Android's local IP pointing to godice-connector.com ist running fine: image What the h... am I still doing wrong?? Right now, I am completely unable to use GoDice in my Foundry, making the purchase completely useless :(

coffiarts commented 5 months ago

Meanwhile, I've (nearly) managed to solve the issue by narrowing it down (with some additional help from the Particula support). Here's what made it work in the end - there seem to habe been two causes at once:

1.) On my Android device, I had an app firewall running (GlassWire). Though had granted internet access to the GoDice app, that doesn't seem to suffice. I guess that GoDice relies on some 3rd party service (like Google). So I desabled the firewall completely for now, but I am still in contact with the support to find out which other apps in particular I need to give internet to make it work without having to bypass my firewall 2.) In Foundry's game settings, I had specified the GoDice websocket URL without the port. After adding the port, everything works now as expected. image

The tricky part is that I had already tried both of the above solutions, but both of them separately! That's why I didn't get the right idea earlier.

I'd like to leave this issue open a bit longer, still hoping for some additional info on 1.), concerning the firewall, as I assume this might be helpful for others too. But apart from that, my issue is (at least pragmatically) resolved.

coffiarts commented 5 months ago

I've run a couple more tests, and now it's working, even with my Anrdoid app firewall up and running. This bizarre thing is that I can't tell why it suddenly doesn't seem to interfere anymore. But anyway, I consider my issue closed (as not reproducible).

coffiarts commented 3 weeks ago

Addendum: Everybody facing similar issues - be aware that v12 brings a new issue that affects GoDice via Unfulfilled Rolls. The solution is given over here: https://github.com/foundryvtt/unfulfilled-rolls/issues/42