memoetapp / memoet

A self-hosted spaced repetition software
GNU Affero General Public License v3.0
96 stars 12 forks source link

"Import Notes" seems to reload constantly - terminal reports Websockets and Connection Could Not Be Found on Server #63

Closed SONDLecT closed 1 year ago

SONDLecT commented 1 year ago

Cheers, I'm loving memoet so far. I managed to somehow import a deck a few days ago, but when I try today, no matter what browser I'm using, whether I'm connecting through the cloudflare-tunnel exposed application or locally via [ipaddress:4000] when I try to import notes into a new deck I'm having a weird error where the page seems to constantly reload and won't let me upload a CSV. When I pull up the browser console I see the following variations of errors:

LibreWolf can’t establish a connection to the server at wss://[DOMAINURLREDACTED]/live/websocket?_csrf_token=[REDACTED]&_mounts=0&vsn=2.0.0. Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist.

On cloudflare I've made sure that the network setting enabling websockets is toggled to "on" and disabled any content optimizations, purged the cache - but nothing seems to change the behavior. Is this something obvious that jumps out to you?

About my installation: Installed using the docker compose on a raspberry pi. Exposed using a cloudflare tunnel. Tested on Firefox, Chromium, Librewolf and Safari. Anything else that I should check?

SONDLecT commented 1 year ago

I've also changed the docker-compose.yml to comment out the custom domain information and I'm still getting the error in the browser console when I try to access Memoet at [ipaddress]:4000.

Firefox can’t establish a connection to the server at ws://[localip]:4000/live/websocket?_csrf_token=[tokenid]&_mounts=0&vsn=2.0.0.

SONDLecT commented 1 year ago

Okay, second issue in as many days that I realized the issue was my fault. I needed to use the correct hostname in the compose file, I realized that had been set incorrectly.