question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Invalid token" when trying to sign up with username already signed up

See original GitHub issue

Sentry Issue: BACKEND-2T

UniqueViolation: duplicate key value violates unique constraint "uq_signup_flows_username"
DETAIL:  Key (username)=(esra) already exists.

  File "sqlalchemy/engine/base.py", line 1771, in _execute_context
    self.dialect.do_execute(
  File "sqlalchemy/engine/default.py", line 717, in do_execute
    cursor.execute(statement, parameters)

IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "uq_signup_flows_username"
DETAIL:  Key (username)=(esra) already exists.

[SQL: UPDATE signup_flows SET username=%(username)s, birthdate=%(birthdate)s, gender=%(gender)s, hosting_status=%(hosting_status)s, city=%(city)s, geom=CAST(CAST(ST_GeogFromText(%(param_1)s) AS geography(POINT,4326)) AS geometry(POINT,4326)), geom_radius=%(geom_radius)s, accepted_tos=%(accepted_tos)s WHERE signup_flows.id = %(signup_flows_id)s]
[param...
(15 additional frame(s) were not displayed)
...
  File "sqlalchemy/engine/base.py", line 1814, in _execute_context
    self._handle_dbapi_exception(
  File "sqlalchemy/engine/base.py", line 1995, in _handle_dbapi_exception
    util.raise_(
  File "sqlalchemy/util/compat.py", line 207, in raise_
    raise exception
  File "sqlalchemy/engine/base.py", line 1771, in _execute_context
    self.dialect.do_execute(
  File "sqlalchemy/engine/default.py", line 717, in do_execute
    cursor.execute(statement, parameters)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
stifler6005commented, Aug 22, 2021

Will you be fixing this up @stifler6005?

Yep

0reactions
aapelivcommented, Aug 22, 2021

OK, do a new PR when ready.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is an 'invalid token' when I try to reset my password?
A token is a one-time generated link that contains numbers and letters that'll allow you to reset your password. It cannot be reused...
Read more >
Troubleshoot Invalid Token Errors - Auth0
Describes how to troubleshoot invalid token errors. ... Error Message: The ID token cannot be validated because it was signed using the HS256...
Read more >
I'm getting the "Your token is invalid [401]" error
This error means that the app has experienced an authentication problem and can't verify your account information. If it occurs, you'll be automatically...
Read more >
What is the Invalid Token message - Bitfinex support
The error message " · " usually occurs when you are trying to log in to your account through email confirmation. ; If...
Read more >
What does 'invalid login token detected' mean?
If you are using our Android app, you may get a message saying 'invalid login token detected' and be unable to use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found