Y
Y
Yaroslav2017-07-31 21:54:53
Node.js
Yaroslav, 2017-07-31 21:54:53

Is there a limit to the size of the ctx.body property in Koa2?

The problem is the following. There is a function that generates an application into a string for the server side.
The function itself works perfectly, what it produces at the output can be analyzed, there are no errors there. Everything is as it should be, tags from start to end.
And now I assign the result of this function to ctx.body and then such a trick occurs, if the size of this ctx.body is up to 20kb everything is OK, and I get the page, if more then no errors are thrown on the server. On the client I get 404
Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav, 2017-07-31
@YarkoDzech

The problem was solved when koa-compress was removed from the project, the problem itself was not analyzed because there is little sense in this compress anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question