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 Flask Basics Character Builder Starting the Builder

Noah Fields
Noah Fields
13,985 Points

Werkzeug.routing.BuildError: Could not build url for endpoint 'builder'

When I run my code, I can name the bear and press the "let's build it!" button, but when I do so I get the error contained in the title. As far as I can tell I copied Kenneth's code exactly, so I'm not sure what the problem is.

A snapshot may be seen at: https://w.trhou.se/58zad7rxuj

Thank you.

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Noah;

A BuildError typically occurs when the url_for() method cannot locate an endpoint that fits the description. Is builder registered with the Flask app?

Post back if you are still stuck or with further questions.

Ken

Noah Fields
Noah Fields
13,985 Points

Ah, indeed. A minor and very hard to spot typo, which I am embarrassed to admit I didn't notice, prevented builder from being registered properly. Thank you for your assistance.