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

add_urls() raises BuildError during calling url_for() #49

Closed
dahlia opened this issue Aug 10, 2014 · 0 comments
Closed

add_urls() raises BuildError during calling url_for() #49

dahlia opened this issue Aug 10, 2014 · 0 comments
Labels

Comments

@dahlia
Copy link
Contributor

dahlia commented Aug 10, 2014

Some endpoints needs arguments (for example, delete_feed requires feed_id), so it raises werkzeug.routing.BuildError where these arguments are not given e.g. listing a category.

Traceback (most recent call last):
  File "/home/.../.local/lib/python3.4/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  ...
  File "/home/earthreader/.local/lib/python3.4/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/earthreader/web/earthreader/web/__init__.py", line 184, in feeds
    add_urls(data, url_keys, cursor.category_id, child.feed_id)
  File "/home/earthreader/web/earthreader/web/__init__.py", line 117, in add_urls
    _external=True
  File "/home/earthreader/.local/lib/python3.4/site-packages/flask/helpers.py", line 312, in url_for
    return appctx.app.handle_url_build_error(error, endpoint, values)
  File "/home/earthreader/.local/lib/python3.4/site-packages/flask/app.py", line 1641, in handle_url_build_error
    reraise(exc_type, exc_value, tb)
  File "/home/earthreader/.local/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/earthreader/.local/lib/python3.4/site-packages/flask/helpers.py", line 305, in url_for
    force_external=external)
  File "/home/earthreader/.local/lib/python3.4/site-packages/werkzeug/routing.py", line 1616, in build
    raise BuildError(endpoint, values, method)
werkzeug.routing.BuildError: ('delete_feed', {}, None)
@dahlia dahlia added the bug label Aug 10, 2014
@dahlia dahlia closed this as completed in 9c65e6f Aug 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant