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.

The following leaks were detected:@@any-promise/REGISTRATION

See original GitHub issue

Issue Description

The following leaks were detected:@@any-promise/REGISTRATION

└─┬ sequelize@5.21.3
  └─┬ retry-as-promised@3.2.0
    └── any-promise@1.3.0 

What do you expect to happen?

No any leaks =)

Environment

  • Sequelize version: 5.21.3
  • Node.js version: v12.14.1
  • Operating System: macOS 10.15.3

Issue Template Checklist

How does this problem relate to dialects?

  • I think this problem happens regardless of the dialect.
  • I think this problem happens only for the following dialect(s):
  • I don’t know, I was using PUT-YOUR-DIALECT-HERE, with connector library version XXX and database version XXX

Would you be willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time and I know how to start.
  • Yes, I have the time but I don’t know how to start, I would need guidance.
  • No, I don’t have the time, although I believe I could do it if I had the time…
  • No, I don’t have the time and I wouldn’t even know how to start.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SalathielGenesecommented, Mar 20, 2020

I have been seeing in my tests from this morning… Since I am playing around with Hapi.js @hapi/lab, I have been thinking the error was from that new library to me.

Seeing this issue, I tried yarn lab --dry and (1) it skips all my tests (2) but the error is still poisoning my tests exist status - not good for Continuous Deployment.

Now, I don’t know how you connected this to sequelize b/c I just removed every direct and transitive call to anything-sequelize from my tests and I still have the error.


Here’s what else I have

package.json

  "devDependencies": {
    "@hapi/code": "^8.0.1",
    "@hapi/lab": "^22.0.4",
    "nodemon": "^2.0.2",
    "sequelize-cli": "^5.5.1",
    "uuid": "^7.0.2",
    "yarpm": "^0.2.1"
  },
  "dependencies": {
    "@hapi/hapi": "^19.1.1",
    "debug": "^4.1.1",
    "env-cmd": "^10.1.0",
    "find": "^0.3.0",
    "pg": "^7.18.2",
    "pg-hstore": "^2.3.3",
    "sequelize": "^5.21.5"
  }

$ yarn why any-promise

yarn why v1.22.0
[1/4] Why do we have the module "any-promise"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "any-promise@1.3.0"
info Reasons this module exists
   - "sequelize#retry-as-promised" depends on it
   - Hoisted from "sequelize#retry-as-promised#any-promise"
info Disk size without dependencies: "148KB"
info Disk size with unique dependencies: "148KB"
info Disk size with transitive dependencies: "148KB"
info Number of shared dependencies: 0
Done in 0.28s.

[UPDATE]

$ grep -rnE 'The following leaks were detected' node_modules 
node_modules/@hapi/lab/lib/reporters/console.js:294:            output += red('The following leaks were detected:' + notebook.leaks.join(', ')) + '\n';
0reactions
github-actions[bot]commented, Nov 30, 2021

This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the “stale” label. 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

The following leaks were detected:@@any-promise ... - GitHub
My story start when I wanted to complete a job test using Hapi.js instead of express... The job is long behind me. Also,...
Read more >
Hapi Lab The following leaks were detected:lr - Stack Overflow
In this new question why I get The following leaks were detected:lr even if there is no global var in the code. Running...
Read more >
hapijs/hapi - Gitter
Does anyone know how to get details for @hapi/lab error: "The following leaks were detected:globalThis"? There doesn't seem to be any other output...
Read more >
Memory leaks detected - Build Environment - CircleCI Discuss
... circleci all tests pass and my test suite (Lab, from Hapi) is reporting that The following leaks were detected:__core-js_shared__, cor…
Read more >
lab v25.0.1 - hapi.dev
This is an alias of ids array property in .labrc file. -I , --ignore - ignore a list of globals for the leak...
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