Skip to content
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

"Unable to find the session to touch" error message #449

Closed
D-32 opened this issue Jan 7, 2022 · 3 comments
Closed

"Unable to find the session to touch" error message #449

D-32 opened this issue Jan 7, 2022 · 3 comments
Labels

Comments

@D-32
Copy link

D-32 commented Jan 7, 2022

  • I'm submitting a ...
    [X] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    When I set something in the user's session I get the following error in the console:

(node:29342) UnhandledPromiseRejectionWarning: TypeError: callback is not a function
    at /Users/[...]/node_modules/connect-mongo/src/lib/MongoStore.ts:326:9
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:29342) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:29342) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Everything still gets stored correctly though.

MongoStore.ts:326:

return callback(new Error('Unable to find the session to touch'));

Any ideas why this might be happening?

  • Other information
    connect-mongo version: 4.6.0
    mongodb version: 4.1.0
    node: v14.17.1 (but also happening in v12)

Thanks!

@mingchuno
Copy link
Collaborator

Might relate to #351

@stale
Copy link

stale bot commented Apr 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 28, 2022
@stale stale bot closed this as completed Jun 12, 2022
@D-32
Copy link
Author

D-32 commented Jun 12, 2022

I'm still having this issue dear stale bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants