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

AssertionError: View function mapping is overwriting an existing endpoint function: users./v1/users/help #114

Open
ustcliao opened this issue Oct 17, 2017 · 1 comment

Comments

@ustcliao
Copy link

I have a url that is "/v1/users"
When I use flask-restful-swagger, i got following error:

File "/Library/Python/2.7/site-packages/flask/app.py", line 64, in wrapper_func
return f(self, *args, **kwargs)
File "/Library/Python/2.7/site-packages/flask/app.py", line 951, in register_blueprint
blueprint.register(self, options, first_registration)
File "/Library/Python/2.7/site-packages/flask/blueprints.py", line 154, in register
deferred(state)
File "/Library/Python/2.7/site-packages/flask/blueprints.py", line 173, in
s.add_url_rule(rule, endpoint, view_func, **options))
File "/Library/Python/2.7/site-packages/flask_restful/init.py", line 165, in _blueprint_setup_add_url_rule_patch
view_func, defaults=defaults, **options)
File "/Library/Python/2.7/site-packages/flask/app.py", line 64, in wrapper_func
return f(self, *args, **kwargs)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1051, in add_url_rule
'existing endpoint function: %s' % endpoint)
AssertionError: View function mapping is overwriting an existing endpoint function: users./v1/users/help

@muhammadarslan99
Copy link

@ustcliao are you able to resolve this ?

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

2 participants