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.

CreateListFromArrayLike called on non-object

See original GitHub issue

You 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:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jamesbachinicommented, Dec 20, 2017

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.

1reaction
hengwooncommented, Dec 18, 2017

I have been seeing a bunch of these errors as well

Read more comments on GitHub >

github_iconTop 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 >

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