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

Dash's config validation prevents requests_pathname_prefix and requests_pathname_prefix from being set #364

Closed
ned2 opened this issue Sep 2, 2018 · 0 comments
Assignees

Comments

@ned2
Copy link
Contributor

ned2 commented Sep 2, 2018

Trying to supply values for either of requests_pathname_prefix and requests_pathname_prefix results in an error:

dash.exceptions.InvalidConfig:
    You supplied `url_base_pathname` and `requests_pathname_prefix`. This is ambiguous.
    To fix this, set `routes_pathname_prefix` instead of `url_base_pathname`.

However I did not supply a value for url_base_pathname. Looks like this is because _configs.pathname_configs is checking to see if url_base_pathname is not None to indicate that a user supplied their own value, but Dash sets a default value of '/', so this logic doesn't work.

HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
HammadTheOne pushed a commit that referenced this issue Jul 23, 2021
AnnMarieW pushed a commit to AnnMarieW/dash that referenced this issue Jan 6, 2022
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