You need to sign in to do that
Don't have an account?
Caleb Kuester 27
SFDX Error on sfdx force:source:pull/push
Hey guys: I'm getting an error on my scratch org when I run the force:source:pull/push commands on my Mac terminal.
The error is:
(node:1196) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 response listeners added. Use emitter.setMaxListeners() to increase limit
Tried:
- It happens in a brand new scratch org that I created for troubleshooting this issue.
- It happens after uninstalling/reinstalling SFDX
- It happens when I install using npm.
- At some point in my scratch org, I noticed a "Logged in too many times" error, so upon checking my login history for one attempt, I get 75 login attempts within a minute's timeframe.
This started happening fairly recently, as I have been working in my scratch org for the past month. It only started yesterday.
It doesn't happen when I run sfdx force:org:list. I get the expected list of several orgs.
Has anybody else come across this?
You need to add the Infinity to your gulp file like below,
hope this will help you.
Thanks
karthik
I expect that it will not generate this error, but either a different error will be generated, or it will just hang there. A standard sfdx push/pull should not be attempting to access the scratch org 75 times (and increasing the longer I let the command hang in the terminal).
I also don't have a gulpfile.js. This is just a process of deploying between local code changes and a scratch org and vice versa.
Solution:
I uninstalled the JRE for Java 8 and it worked.
https://docs.oracle.com/javase/10/install/installation-jdk-and-jre-macos.htm#JSJIG-GUID-577CEA7C-E51C-416D-B9C6-B1469F45AC78