Serverless-offline: First request is empty when size is big

Created on 14 Aug 2019  路  4Comments  路  Source: dherault/serverless-offline

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.
  • The data logged is preceded with Serverless: Failure:.
    image

  • 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
bug python

All 4 comments

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.

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JimLynchCodes picture JimLynchCodes  路  4Comments

mattmeye picture mattmeye  路  4Comments

conradoramalho picture conradoramalho  路  3Comments

jormaechea picture jormaechea  路  4Comments

ozbillwang picture ozbillwang  路  4Comments