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

StringDataRightTruncation: value too long for type character varying(20) #198

Closed
sentry-io bot opened this issue Apr 18, 2023 · 2 comments
Closed
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 18, 2023

Sentry Issue: KOLIBRI-BACKEND-2DD

DataError: value too long for type character varying(20)

(18 additional frame(s) were not displayed)
...
  File "django/db/models/sql/compiler.py", line 1112, in execute_sql
    cursor.execute(sql, params)
  File "django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)

StringDataRightTruncation: value too long for type character varying(20)

  File "django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
@nucleogenesis
Copy link
Member

Giving this a look it seems that the issue was that the user put in too long a phone number. Seems the phone number input in the Reset Password flow needs to have a max character limit applied to avoid this error coming through.

The number given also seems like it might have been copy-pasted a couple too many times by mistake as it's a pattern -- or this is just errant traffic.

In any case, this doesn't appear to be impacting users too much as it will work for anybody using a proper phone number that they've successfully made an account with.

@nucleogenesis
Copy link
Member

#201 will follow up on 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

1 participant