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
{{ message }}
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
If some asset is uploaded to the asset canister under name api/xyz, then requesting it through icx-proxy will result in 400 error, which happens on both local dfx deployment and main net.
This is because icx-proxy hard coded path api to redirect to replica in these lines
Given that /api is such a common prefix, shall we change it to something like /_/api ? Or at least give a better error message with some description of what could be going on?
The text was updated successfully, but these errors were encountered:
Thanks Paul for identifying this issue for me. I had to change my api path from api/posts to api-ic/posts to avoid this awkward and very unexpected error. I thought it was something wrong with Svelte and it turned out to be good old IC ...
If some asset is uploaded to the asset canister under name
api/xyz
, then requesting it through icx-proxy will result in 400 error, which happens on both local dfx deployment and main net.This is because icx-proxy hard coded path
api
to redirect to replica in these linesicx-proxy/src/proxy/mod.rs
Lines 157 to 158 in 4f73294
Given that
/api
is such a common prefix, shall we change it to something like/_/api
? Or at least give a better error message with some description of what could be going on?The text was updated successfully, but these errors were encountered: