SignIn in Auth0 Node Authentication

I’m using the Node API for authentication, and was able to successfully implement the SignUp flow. However, for SignIn, my request to the Auth0 server is replying with 404 Not Found, without a normal error message.

Here’s my node code:

auth0.database.signIn(
    {
      password: password,
      username: username
    },
    async (err, userData) => {
      if (err) {
        console.log(err)
      }
     }
)

When this is run, the error is

name: {},
  message: {},
  statusCode: 404,
  requestInfo: { method: 'post', url: 'https://camelot.auth0.com/oauth/ro' },
  originalError:
   { Error: Not Found,
      status: 404,
     response:
      Response {
        domain: null,
        _events: {},
        _eventsCount: 0,
        _maxListeners: undefined,
        res: [Object],
        request: [Object],
        req: [Object],
        text: 'Not Found',
        body: {},
        files: undefined,
        buffered: true,
        headers: [Object],
        header: [Object],
        statusCode: 404,
        status: 404,
        statusType: 4,
        info: false,
        ok: false,
        redirect: false,
        clientError: true,
        serverError: false,
        error: [Object],
        created: false,
        accepted: false,
        noContent: false,
        badRequest: false,
        unauthorized: false,
        notAcceptable: false,
        forbidden: false,
        notFound: true,
        unprocessableEntity: false,
        type: 'text/plain',
        charset: 'utf-8',
        links: {},
        setEncoding: [Function: bound ],
        redirects: [] } } }

Is there something wrong with auth0.database.signIn? Thank you!!

Hey there @EmptyCrown, I apologize for the delay in response.

To answer your question of:

This shouldn’t be the case.

To build from here I would be happy to help you with this challenge if you are still facing it. To start I would love to see your challenged workflow with an HAR file capture, be sure to select “Preserve log” to catch redirects and scrub the file of user passwords before passing it along with your tenant name in a direct message! Due to the age of this topic I will keep it open for 10 days without a response, however if you are still experiencing this issue or any other one please don’t hesitate to let me know so we can work together on getting it resolved. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.