Skip to content

Error accesing /users #23

@miguelpdm

Description

@miguelpdm

Hi,
Thanks for your work, I really like it.
I was testing the component, and i suddenly started geting this error in /users:
TypeError: Cannot read properties of undefined (reading 'split')
at getTokenFromRequest (/data/node_modules/node-red-contrib-users-jwt/users.js:16:42)
at verifyJwt (/data/node_modules/node-red-contrib-users-jwt/users.js:24:19)
at /data/node_modules/node-red-contrib-users-jwt/users.js:133:19
at Layer.handle [as handle_request] (/usr/src/node-red/node_modules/express/lib/router/layer.js:95:5)
at next (/usr/src/node-red/node_modules/express/lib/router/route.js:144:13)
at appendTrailingSlash (/data/node_modules/node-red-contrib-users-jwt/users.js:106:3)
at Layer.handle [as handle_request] (/usr/src/node-red/node_modules/express/lib/router/layer.js:95:5)
at next (/usr/src/node-red/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/usr/src/node-red/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/usr/src/node-red/node_modules/express/lib/router/layer.js:95:5)

I was just testing with postman and now I'm stuck at this point.
KR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions