You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then after investigating, I found that Wave expects file path url to begin with /_f . This path is returned from wave upload component and we provide it to q.site.unload function.
The reason for additional part (/instance/0eecb492-0acd-42da-8f2c-307923802a6a/) in file path url is because of H2O_WAVE_BASE_URL ENV variable where in app store it is /instance/0eecb492-0acd-42da-8f2c-307923802a6a/. H2O_WAVE_BASE_URL is used for path-based routing.
Then I did another change in the code to remove the additional part (/instance/0eecb492-0acd-42da-8f2c-307923802a6a/) and pass only /_f/3ad81d52-c716-472d-8dc9-8dd0db8cd802/dai_lgbm_mojo.zip to q.site.unload function.
Then the app was stuck and got the following error.
Traceback (most recent call last):
File "./src/app.py", line 40, in serve
if not await handle_on(q):
File "/resources/venv/lib/python3.7/site-packages/h2o_wave/routing.py", line 179, in handle_on
if await _match_predicate(predicate, func, arity, q, arg_value):
File "/resources/venv/lib/python3.7/site-packages/h2o_wave/routing.py", line 129, in _match_predicate
await _invoke_handler(func, arity, q, arg)
File "/resources/venv/lib/python3.7/site-packages/h2o_wave/routing.py", line 117, in _invoke_handler
await func(q)
File "./src/mlops/handlers/experiments/add_experiment_handler.py", line 55, in experiment_file_upload
await q.site.unload(get_unload_file_path(uploaded_file))
File "/resources/venv/lib/python3.7/site-packages/h2o_wave/core.py", line 832, in unload
raise ServiceError(f'Unload failed (code={res.status_code}): {res.text}')
h2o_wave.core.ServiceError: Unload failed (code=404): 404 page not found
So it seems that when you send without instance ID, there is no handler for it and you get a 404.
The text was updated successfully, but these errors were encountered:
Wave SDK Version, OS
0.21.1
Actual behavior
I am using q.site.unload function to remove files from
f
folder. In AppStore, it provides an error as below.Then after investigating, I found that Wave expects file path url to begin with
/_f
. This path is returned from wave upload component and we provide it toq.site.unload
function.The reason for additional part (
/instance/0eecb492-0acd-42da-8f2c-307923802a6a/
) in file path url is because ofH2O_WAVE_BASE_URL
ENV variable where in app store it is/instance/0eecb492-0acd-42da-8f2c-307923802a6a/
.H2O_WAVE_BASE_URL
is used for path-based routing.Then I did another change in the code to remove the additional part (
/instance/0eecb492-0acd-42da-8f2c-307923802a6a/
) and pass only/_f/3ad81d52-c716-472d-8dc9-8dd0db8cd802/dai_lgbm_mojo.zip
toq.site.unload
function.Then the app was stuck and got the following error.
So it seems that when you send without instance ID, there is no handler for it and you get a 404.
The text was updated successfully, but these errors were encountered: