mgilangjanuar / teledrive

The Google Drive/OneDrive/etc alternative using Telegram API
https://teledriveapp.com
GNU General Public License v3.0
2.06k stars 949 forks source link

Network error after trying to login via phone number #283

Open Paulschellnast opened 2 years ago

Paulschellnast commented 2 years ago

Server and Web works fine but I get a network error when I try to login by phone number. The QR code also doesn't load for me. I've pulled the staging branch and rebuilt everything.

mgilangjanuar commented 2 years ago

Hmm did you just apply all env variable?

Paulschellnast commented 2 years ago

Hmm did you just apply all env variable?

I found two errors after executing "docker-compose up" [https://imgur.com/Y2cl4si.jpg](Error 1) [https://imgur.com/jjk7HM7.jpg](Error 2)

I filled out all needed env variables

Nixuge commented 2 years ago

IIRC that happens when you're not using HTTPS/localhost

mgilangjanuar commented 2 years ago

Hmm did you just apply all env variable?

I found two errors after executing "docker-compose up" [https://imgur.com/Y2cl4si.jpg](Error 1) [https://imgur.com/jjk7HM7.jpg](Error 2)

I filled out all needed env variables

The errors said you didn't set up the .env file, did you add the file in the docker folder and rename it to .env?

w0nd3r365 commented 2 years ago

Server and Web works fine but I get a network error when I try to login by phone number. The QR code also doesn't load for me. I've pulled the staging branch and rebuilt everything.

IIRC that happens when you're not using HTTPS/localhost

Happened the same to me, I just changed the url from 127.0.0.1:4096 to localhost:4096 and it worked. Also the QR code wasn't loading for me, and I found out it was because of browser option forcing dark mode in all web pages that was buggy, thus making it impossible to see the qr code although it's already loaded by Teledrive. I temporarily disabled dark mode and then I could see the qr codes. Heroku https works fine.

I found two errors after executing "docker-compose up" [https://imgur.com/Y2cl4si.jpg](Error 1) [https://imgur.com/jjk7HM7.jpg](Error 2)

I filled out all needed env variables

Seems you have to use https://<url>/http://localhost:$PORT when accessing Teledrive.