-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
UUID support in URLs #112
Comments
The stack trace is from the SQLAlchemy panel, so I think the issue is with serializing one of your SQL query parameters, not necessarily with the URL. What parameters are you passing to the SQL query? Also, what version of the extensions are you using? |
I have some models with UUID as their primary key. I use UUID type from SQLAlchemy-Utils package. Endpoints that uses UUID in URL have queries by UUID from the tables. Versions of packages that may be interesting (actually there is more stuff like redis, marshmallow, etc.):
|
You are right, the real problem is random UUIDs that are serialized to strings and inserted to queries. As a result such strings contain invalid utf-8 characters. Below is the example:
Now I'm using toolbar with sqlalchemy panel disabled. Why debug toolbar tries to dump list with query and parameters to json? |
* sqlalchemy pane cannot handle UUID in bytes format pallets-eco/flask-debugtoolbar#112 Closes inveniosoftware#184
* sqlalchemy pane cannot handle UUID in bytes format pallets-eco/flask-debugtoolbar#112 Closes inveniosoftware#184
* sqlalchemy pane cannot handle UUID in bytes format pallets-eco/flask-debugtoolbar#112 Closes inveniosoftware#184
* sqlalchemy pane cannot handle UUID in bytes format pallets-eco/flask-debugtoolbar#112 Closes inveniosoftware#184
* sqlalchemy pane cannot handle UUID in bytes format pallets-eco/flask-debugtoolbar#112 Closes inveniosoftware#184
* sqlalchemy pane cannot handle UUID in bytes format pallets-eco/flask-debugtoolbar#112 Closes #184
* sqlalchemy pane cannot handle UUID in bytes format pallets-eco/flask-debugtoolbar#112 Closes #184
Thanks for the good extension that helps a lot!
I have problems using it with Flask-UUID extension and URLs that have UUIDs inside. Is it possible to fix this? Providing stack trace below:
The text was updated successfully, but these errors were encountered: