Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined #13413

Closed
ghost opened this issue May 19, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented May 19, 2022

Describe the Bug

Why must the authenticationService.login method pass a password?
If you do not pass the password, it will report an error

To Reproduce

image

You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:372:5)
at Function.from (node:buffer:323:9)
at Object.verify (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/argon2/argon2.js:95:31)
at LocalAuthDriver.verify (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/auth/drivers/local.js:34:56)
at LocalAuthDriver.login (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/auth/drivers/local.js:39:20)
at AuthenticationService.login (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/services/authentication.js:102:28)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Errors Shown

No response

What version of Directus are you using?

9.10.0

What version of Node.js are you using?

18.0.0

What database are you using?

Postgres 14

What browser are you using?

Chrome

How are you deploying Directus?

cli

@ghost ghost added the Bug (Potential) label May 19, 2022
@directus directus locked and limited conversation to collaborators May 19, 2022
@rijkvanzanten rijkvanzanten converted this issue into discussion #13414 May 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants