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.

bug: User Creation Error using username and password

See original GitHub issue

Describe the bug

Logto is up and running in render.com along with its PostgreSQL DB.

Creating a user using a username and password results in an unknown error in the front-end. But, while checking Audit Logs and User Management, the created user and its events show up as successful. Despite user creation, cannot log in using the user credentials. Says Unknown error. Please try again later. Logging in using a social connector (Google OAuth) works fine. Added step-by-step screenshots for ease of understanding.

Expected behavior

User creation and redirection to set redirect URL

How to reproduce?

Create a Dockerfile in a GitHub repo Only add FROM svhd/logto:1.0.0-beta.5 Connect Render.com to that GitHub repo Create and run a PostgreSQL Set ENV Variables Integrate the API in the NextJS Application as per the documentation (getting started guide in the logto admin panel) Call /api/logto/sign-in using a button

Context

OS:

Environment: Docker Image at render.com

Logto version: v1.0.0-beta.5

Node version: 16

Postgres version: 14.0.+

Command of starting Logto: Image is automatically deployed and runs on every push from a Github repo. ENV variables are provided in render.com.

Screenshots

  1. Creating a user using a username and password image

  2. Audit Log shows a successful event image image

  3. Cannot log in using the created username and password image

  4. Despite 3, the User log shows successful login image

  5. Set up a google login connector and that works fine image image image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
charIeszhaocommented, Sep 17, 2022

@ahamedzoha Hi Zoha, sorry for the long wait. But finally we decided to increase the ky timeout to 20s, which I think would be enough for any server to respond to the client.

You can wait for the next prerelease version (likely released on next Monday or Tuesday), or try to upgrade to :edge version of Logto after this PR is merged.

Let me know if you have further questions. Thanks! Charles

1reaction
ahamedzohacommented, Sep 18, 2022

Thank you @charIeszhao! I will eagerly await the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: A new user was created, but a password error was p...
A new user was created, but a password error was prompted when logging in. “Sorry, your username and password are incorrect - please...
Read more >
Error: Unable to create a user - Microsoft Q&A
Hi i got the same issue and i was able to resolve issue by not including the user name in password. I use...
Read more >
User_login action causing error as "Invalid username or ...
I am using User_login() action to login using particular credentials which is coming as username and password input parameter.
Read more >
mysql - syntax error from CREATE USER with variables giving ...
Unfortunately, the use of stored procedure input parameters as passwords in a CREATE USER or GRANT statement is documented in this bug as...
Read more >
Fix "The sign-in name or password does not match one in the ...
Your user name or password could be wrong (Obviously!). Check if you are able to log in using a web browser with 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