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
There is a known limitation in Grain 0.3 (which will be fixed in 0.4) that causes File.pathOpen to cause a WASI error that cannot be trapped by userland code.
When Grain 0.4 is released, File.pathOpen will return a Result, which we can trap and convert to a 404 error.
The text was updated successfully, but these errors were encountered:
As a stopgap, it might be possible to do a directory listing of the parent directory and see if the file is there. If not, return a 404 well before the pathOpen is called.
There is a known limitation in Grain 0.3 (which will be fixed in 0.4) that causes
File.pathOpen
to cause a WASI error that cannot be trapped by userland code.When Grain 0.4 is released,
File.pathOpen
will return aResult
, which we can trap and convert to a 404 error.The text was updated successfully, but these errors were encountered: