First request is empty when size is big
Rafaelsk opened this issue · 4 comments
With Serverless-Offline for our Python project, when we make an API request which returns a list of entities the first call is always empty, here more details:
-
Only the first call is empty, the following calls work normally.
-
The data is logged in the console, so the data which was supposed to be returned.
-
When reducing the number of entities to be returned it doesn't fail anymore.
-
When testing with a real lambda in AWS it doesn't fail ever.
-
The status code is 200
-
From the requester perspective, the return is just a 200 with no body
-
The data with which it fails is 20782 characters long
thank you @Rafaelsk !
marking as bug for now. probably something wrong with the JSON detection mechanism, which caused a lot of problems. we'll have a look soon.
hopefully fixed with #785
@Rafaelsk I rewrote the (fairly buggy) python
handling code, and it's running great locally. release should be coming soon. meanwhile you can give alpha.13
a try, which should include some fixes.
@dnalborczyk Alright. Thanks for the notice.