How to fix MicroPython WebREPL ValueError in File "webrepl.py", line 72, in start

Problem:

You want to configure your MicroPython WebREPL programmatically using webrepl.start(password="...") but you see a stacktrace like

webrepl_stacktrace.txt
>>> webrepl.start(password="Rua8ohjedo")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "webrepl.py", line 72, in start
ValueError:

Solution

Use a shorter password with 8 characters max:

webrepl_usage_example.py
webrepl.start(password="Rua8ohje")

 


Check out similar posts by category: Embedded, MicroPython, Python