Skip to content

I cannot trace where this error is coming from - can you help? #300

Answered by ghost
tgmerritt asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know what tools you are running but it really can't be made more obvious:

Listening to port 9001

/home/alexhultman/uWebSockets.js/examples/HelloWorld.js:11
  res.end({key: "value"});
      ^
Text and data can only be passed by String, ArrayBuffer or TypedArray.

Generally I would say, you can't just assume that whatever Express does, uWS.js will do the same. They are two entirely different projects and you'll have to follow the docs more closely.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #300 on December 09, 2020 04:09.