Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in view not getting reported #106

Closed
benekastah opened this issue Oct 19, 2018 · 2 comments
Closed

Error in view not getting reported #106

benekastah opened this issue Oct 19, 2018 · 2 comments

Comments

@benekastah
Copy link

import tempfile
import responder

api = responder.API()

@api.route("/bugtest")
async def test(req, res):
    with tempfile.NamedTemporaryFile() as f:
        # This write call will fail
        f.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).

@taoufik07
Copy link
Collaborator

ref #78

@kennethreitz
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants