CreateListFromArrayLike called on non-object
See original GitHub issueYou want to:
- report a bug
- request a feature
Current behaviour
Server dies instantly, cause unknown
Steps to reproduce (if the current behaviour is a bug)
This happened passively, I found this in my error log
/home/ubuntu/node_modules/socket.io/lib/socket.js:503
emit.apply(self, event);
^
TypeError: CreateListFromArrayLike called on non-object
at /home/ubuntu/node_modules/socket.io/lib/socket.js:503:12
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
Expected behaviour
Handle the issue, provide more information
Setup
- OS: Ubuntu
- browser: Node 7.7.1
- socket.io version: 1.7.3
Other information (e.g. stacktraces, related issues, suggestions how to fix)
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Getting error CreateListFromArrayLike called on non-object ...
You need to send the params as an array, like this: app[method.toLowerCase()].apply(this, [path, fn]);. If you want to send an arguments ...
Read more >TypeError: CreateListFromArrayLike is called on non-object
I am trying to apply tweens to several elements into an array that I am looping though. I have created 4 timelines, two...
Read more >TypeError: CreateListFromArrayLike called on non-object
My task is to send these encoded functions with parameters to that contract (deployed at localhost - Ganache GUI). My code works for...
Read more >Passing Values from one Function as Domain (manufacturing ...
Then I compare this list with products in a location called WIP. and from that ... TypeError: CreateListFromArrayLike called on non-object.
Read more >TypeError: CreateListFromArrayLike called on non-object
I am getting the following error after updating a sample project to the latest patch: TypeError: CreateListFromArrayLike called on non-object.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had this issue on a fairly high load server. Was getting a lot of uncaught exceptions. The way I fixed it was to add this line to /node_modules/socket.io/lib/socket.js
if (typeof event !== ‘object’) return false;
Above line 513, emit.apply(self, event);
This seems to have fixed the issue for now but not sure if it’s a good permanent solution.
I have been seeing a bunch of these errors as well