We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467b164 commit a3305b3Copy full SHA for a3305b3
shiny/_app.py
@@ -164,6 +164,11 @@ def init_starlette_app(self):
164
middleware.append(
165
starlette.middleware.Middleware(InjectAutoreloadMiddleware)
166
)
167
+ # In Pyodide mode, an HTTPException(404) being thrown resulted in
168
+ # some default error handler (that happened not to be async) being
169
+ # run in a threadpool, which Pyodide could not handle. So in Pyodide
170
+ # mode, install our own async error handler at the outermost layer
171
+ # that we can.
172
if is_pyodide:
173
middleware.append(starlette.middleware.Middleware(ErrorMiddleware))
174
0 commit comments