h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

401 Unauthorized Error - Wave reload on quick code changes #2337

Open pascal-pfeiffer opened 1 month ago

pascal-pfeiffer commented 1 month ago

Wave SDK Version, OS

Wave 1.2.0 (but basically on all wave versions) Ubuntu 22.04

Actual behavior

When I change code locally and run the wave server without --no-reload, it will automatically detect code changes and reload. Unfortunately, when using autosave, I get a 401 error very often doing so. Probably due to rapid changes in the files. In these cases, I need to change the code again or restart the wave server manually to recover.

INFO:     127.0.0.1:46888 - "POST / HTTP/1.1" 401 Unauthorized

Expected behavior

Handle quick changes in the code.

Steps To Reproduce

  1. Run a wave server and application without --no-reload arg.
  2. Make quick changes in the code and save often. Or use autosave.
  3. Receive 401 error
psinger commented 1 month ago

Seeing the same issue.