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
importtempfileimportresponderapi=responder.API()
@api.route("/bugtest")asyncdeftest(req, res):
withtempfile.NamedTemporaryFile() asf:
# This write call will failf.write('this should be bytes, not str')
resp.content='Success!'
When I hit this view, I get a 200 response (no response body). I expect a 500 with a response of "Internal server error" (which I've gotten on other occasions).
The text was updated successfully, but these errors were encountered:
When I hit this view, I get a 200 response (no response body). I expect a 500 with a response of "Internal server error" (which I've gotten on other occasions).
The text was updated successfully, but these errors were encountered: