Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lone surrogate U+D83D is not a scalar value #2820

Closed
1 of 2 tasks
ghost opened this issue Jan 11, 2017 · 2 comments
Closed
1 of 2 tasks

Lone surrogate U+D83D is not a scalar value #2820

ghost opened this issue Jan 11, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 11, 2017

You want to:

  • report a bug
  • request a feature

Setup

  • OS: Debian 7
  • socket.io version:1.4.8

Other information (e.g. stacktraces, related issues, suggestions how to fix)

App falling with this error:

Error: Lone surrogate U+D83D is not a scalar value
    at Error (native)
    at checkScalarValue (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/utf8.js:69:10)
    at encodeCodePoint (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/utf8.js:90:4)
    at Object.utf8encode [as encode] (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/utf8.js:111:18)
    at Object.exports.encodePacket (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/index.js:75:34)
    at encodeOne (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/index.js:385:13)
    at eachWithIndex (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/index.js:234:5)
    at map (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/index.js:241:5)
    at Object.exports.encodePayloadAsBinary (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/index.js:409:3)
    at Object.exports.encodePayload (/bot/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/index.js:203:20)
    at XHR.Polling.send (/bot/node_modules/socket.io/node_modules/engine.io/lib/transports/polling.js:246:10)
    at Socket.flush (/bot/node_modules/socket.io/node_modules/engine.io/lib/socket.js:416:20)
    at Socket.sendPacket (/bot/node_modules/socket.io/node_modules/engine.io/lib/socket.js:392:10)
    at Socket.send.Socket.write (/bot/node_modules/socket.io/node_modules/engine.io/lib/socket.js:353:8)
    at writeToEngine (/bot/node_modules/socket.io/lib/client.js:148:17)
    at Client.packet (/bot/node_modules/socket.io/lib/client.js:159:7)
    at Socket.packet (/bot/node_modules/socket.io/lib/socket.js:210:15)
    at /bot/node_modules/socket.io/node_modules/socket.io-adapter/index.js:143:30
    at Encoder.encode (/bot/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/index.js:135:5)
    at Adapter.broadcast (/bot/node_modules/socket.io/node_modules/socket.io-adapter/index.js:121:16)
    at Namespace.emit (/bot/node_modules/socket.io/lib/namespace.js:219:18)
    at Server.(anonymous function) [as emit] (/bot/node_modules/socket.io/lib/index.js:369:16)
@darrachequesne
Copy link
Member

This was:

@ghost
Copy link
Author

ghost commented Jan 12, 2017

Okay, thank you for your answer :)
Closed

@ghost ghost closed this as completed Jan 12, 2017
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant