-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
DataError: value too long for type character varying(190) #179
Comments
@tripliks Sorry for the delay. The short answer is no and not for the foreseeable future. URL fields are indexed values in the library. However, to be MySQL Ultimately, v1.0.0 went forward with 190 char limit. |
@tripliks You could tail strip out values longer than 190 via a |
@tripliks Unless there is more of an action to take I am looking at closing this issue. |
To expand on @marcoaurelioneto report, we are using Django v1.11.2, django-silk v1.0.0, PostgreSQL 9.4.12 and psycopg2 v2.7.1 |
@marcoaurelioneto You could tail strip out values longer than 190 via a pre_save signal I believe. Not the best solution but a workaround of sorts. |
@gdelnegro The 190 character limit is an intended limit due to MySQL support. The best I can suggest is to tail strip out url values over the 190 character limit via a pre_save signal. |
I face the same issue with a different long url having a few uuid4s. |
Silk should make a sane path that fits in the 190 character limit to avoid breaking users' applications. I will open a PR. |
In our case we were able to solve the problem by requesting the POST method. |
MySQL index restrictions prevent us from having path or view_name be longer than 190 characters (see jazzband#38), but there is no logic in the Request object to enforce this limit when saving, so long URLs cause a 500 error. Closes jazzband#179.
Hello,
I'm getting this exception for long urls ie. /resource/<jwt_token>. Looks like the limit is 190 chars.
Is there a way to have long urls logged?
The text was updated successfully, but these errors were encountered: