Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Build a Social Network with Flask Takin' Names Macros

BRAD STYES
BRAD STYES
13,421 Points

Has anybody else gotten the ValueError: View function did not return a response?

app.py seems to run fine, but I get the stack trace page when I click on the Preview Workspace (the eyeball)

1 Answer

Is this Flask? I think you may be getting this error if your function isnt returning something. In Flask even if you return None you will probably get this error. Try return 'OK' and see if this fixes the error