1 upvotes, 2 direct replies (showing 2)
View submission: How to use WhatsApp on dumbphones
Hey u/tomtau, sorry to bother you on this old thread. I'm trying to deploy an instance of superbasic-im for test purposes (I very much like the idea and the project) but I'm stuck with an error/weird behavior that I can't wrap my head around. Basically the node server starts fine and the login page works, but as soon as I try to sign in, I get a 403, while on the console I see just a "QR code RECEIVED" message. Tried multiple times, with multiple browsers (both legacy and modern ones) and of course checked my credentials, with no success. Do you have any idea what could be causing this?
Comment by dariolob at 18/02/2025 at 15:22 UTC*
3 upvotes, 1 direct replies
u/tomtau Quick update on this (I will also add this info in the github discussion for future reference): it looks like whatsapp-web.js doesn't play nice if superbasic-im is exposed HTTP-only. I managed to resolve the issue by using a reverse proxy as u/gainzaATH suggested, but only after enabling HTTPS traffic. If only HTTP is enabled, once past the login screen the web app stops working as previously described. If the web app is exposed both on HTTP and HTTPS, HTTP-only can be used after authentication. I was hoping to use superbasic-im with BBOS 7 default browser but due to this inconvenience it isn't possible. It works fine on Opera Mini though :)
tl;dr: exposing superbasic-im to the internet is not enough, it also needs to run in HTTPS.
Comment by tomtau at 15/02/2025 at 12:32 UTC
2 upvotes, 1 direct replies
Hey u/dariolob , I haven't seen this issue, but there was one person who seemed to have encountered the same or similar issue: https://github.com/tomtau/superbasic-im/discussions/1#discussioncomment-10559314[1][2] -- you can perhaps ask on that thread for more details on how to resolve it?
1: https://github.com/tomtau/superbasic-im/discussions/1#discussioncomment-10559314
2: https://github.com/tomtau/superbasic-im/discussions/1#discussioncomment-10559314