Open theoware opened 1 month ago
What command line did you use to run the container + do you see any errors in the dev console?
Hey, I used the following command:
sudo docker build -t whasync .
sudo docker run --rm -it -p 80:80 whasync
What do you mean by dev console? The logs I sent above are the whole output of these two commands
In chrome press F12 on your keyboard to open the dev console, you should see the frontend's errors there
Here you go:
Some cookies are misusing the recommended “SameSite“ attribute 4
The resource at “<URL>” was blocked because content blocking is enabled. 2
Firefox can’t establish a connection to the server at ws://192.168.178.156/api/ws. index-Vs-X_rTS.js:21:30232
WS error - [object Event] index-Vs-X_rTS.js:21:30333
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Partitioned cookie or storage access was provided to “https://ghbtns.com/github-btn.html?user=guyzyl&repo=whatsapp-contact-sync&type=star&count=true&size=large” because it is loaded in the third-party context and dynamic state partitioning is enabled.
Everything seems OK from the frontend perspective.
It seems that for some reason the backend is up (Listening on port 8080
), but fails to respond to any of the requests it receives (failed (111: Connection refused) while connecting to upstream
).
The thing is that the Docker image does work, it's what's powering whasync.com + I tried building it myself and running locally when you opened the issue.
My guess would be that it's a configuration problem of the backend. Have you configured all of the ENV vars as mentioned in README.md? If you're sure you have, I'll try to think of another way to test my theory (remotely).
It's really weird. I've tried using older versions, setting network to host, also allowing port 8080, setting the env variables in the command, seperating web and backend. I also tried using it on a different computer. Not only that, but I've also tried running it without docker using npm, that worked. Before, it also worked on my pc. So I think it's some sort of update breaking the program.
Does the latest version (main
branch) work for you using npm
?
It's hard for me to pinpoint where things are going wrong on your machine remotely, so I'm trying to ask guiding questions in the hopes that you'll find something that causes it all to break.
Just tested and I can confirm it works using npm
So it defiantly has something to do with the container itself, but it does work for me meaning it has to do something with you environment.
Have you modified any of the files? Are there any local changes you have that are not on the main
branch of the repo?
Apart from the env and google auth thing, I haven't changed anything.
Just now, I've also tried running on a fresh clone of the repo. Still the same result
Can you upload the container you built to dockerhub? I'll try to check it out myself.
Sure, thanks! https://hub.docker.com/r/theoware/whasync/tags
Hey,
using the Dockerfile I'm only able to get to the landing page. I'm pretty sure, I've set the variables right. I hope, you are able to help me.
Logs:
Screenshot of webpage:![grafik](https://github.com/guyzyl/whatsapp-contact-sync/assets/59124958/ebb03d69-2305-4dfa-aafe-abadc8912ebb)