micropython / webrepl

WebREPL client and related tools for MicroPython
MIT License
629 stars 296 forks source link

Access Denied when accessing on Android Devices (via Web browser) #52

Open AlexzPurewoko opened 4 years ago

AlexzPurewoko commented 4 years ago

An error occured (Access Denied) while using Android devices to connect. But when using PC's, it's normal (login with same password on both devices).

The configuration is: on ESP32: webrepl -> enabled wifi enabled with station (connected on my android devices via tethering)

Can you help me to fix it ? thanks:blush: :+1:

Sent from my Galaxy J2 Prime using FastHub

Dikirim dari Galaxy J2 Prime menggunakan FastHub

Derzhavin commented 4 years ago

An error occured (Access Denied) while using Android devices to connect. But when using PC's, it's normal (login with same password on both devices).

The configuration is: on ESP32: webrepl -> enabled wifi enabled with station (connected on my android devices via tethering)

Can you help me to fix it ? thanks

Sent from my Galaxy J2 Prime using FastHub

Dikirim dari Galaxy J2 Prime menggunakan FastHub

Hello, @AlexzPurewoko, did you solve this issue? I have the same issue on PC.

dpgeorge commented 4 years ago

It could be because the browser accesses the site via https. Only http is supported at this stage. Try to explicitly type in http://... in the browser.

norlesh commented 4 years ago

+1 confirmation there is a problem with Android access as outlined above... I have triple checked the URL is using htttp and not https, am wondering if it could be something to do with the Android soft keyboard inserting something stupid like a space character after the password - any suggestions how to begin debugging this?

84ace commented 3 years ago

+1 confirmation there is a problem with Android access as outlined above... I have triple checked the URL is using htttp and not https, am wondering if it could be something to do with the Android soft keyboard inserting something stupid like a space character after the password - any suggestions how to begin debugging this?

Same here.

picpic020960 commented 3 years ago

Same here.

cado4711 commented 3 years ago

Hi @AlexzPurewoko, I'm frustrated too about this behaviour. However I found out that touching into the terminal window instead of pressing enter works and then I'm in the REPL. Unfortunately the next issue is when typing something into the REPL it is not visible but it will be performed when touching into the window instead of pressing enter on the virtual keyboard. I think this is a problem with term.js but I'm not sure.

May be we can live with the current behaviour (if this works for you too) if somebody finds out why the typed characters do not show up within the terminal window in the mobile browser.

Best, Carsten

cado4711 commented 3 years ago

I forgot to mention that I have the same behaviour in all my tested browsers (latest versions) on Android 10: -> Chrome, Firefox and Opera

h3llyeah commented 1 year ago

The issue persists still with Chrome and Brave-Browser latest updates. With Firefox webrepl works good.

Setup: (sysname='esp8266', nodename='esp8266', release='2.2.0-dev(9422289)', version='v1.20.0 on 2023-04-26', machine='ESP module with ESP8266')

Android 13

woofwoof commented 1 year ago

Finally got this working on Android 13. Disabled the certifcates for Letsencrypt (settings --> Security etc), opened up an incognito browser in Chrome having deleted all history etc then of course ensured all devices are on the same network. Finally run the micropython webrepl client in desktop mode but then had to use a bluetooth keyboard (popup keyboard wasn't displaying) ! Still a little work to do so this is a portable solution - primarily run off a portable hotspot device. Its a clunky solution yet works. Even transferred a file from my esp8266 to edit on the Android phone using this. So, to sum, it is possible but the jury is still out if the costs outweigh benefits.