Title: request fails with LambdaResponseTooLarge · Issue #64 · stackery/php-lambda-layer · GitHub
Open Graph Title: request fails with LambdaResponseTooLarge · Issue #64 · stackery/php-lambda-layer
X Title: request fails with LambdaResponseTooLarge · Issue #64 · stackery/php-lambda-layer
Description: We have logic in our code that will write the response to S3 and redirect the client to the S3 URL if the content length is > 900,000. We have requests that are failing but yet that do not exceed the 900,000. I have added debug logs in t...
Open Graph Description: We have logic in our code that will write the response to S3 and redirect the client to the S3 URL if the content length is > 900,000. We have requests that are failing but yet that do not exceed t...
X Description: We have logic in our code that will write the response to S3 and redirect the client to the S3 URL if the content length is > 900,000. We have requests that are failing but yet that do not excee...
Opengraph URL: https://github.com/stackery/php-lambda-layer/issues/64
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"request fails with LambdaResponseTooLarge","articleBody":"We have logic in our code that will write the response to S3 and redirect the client to the S3 URL if the content length is \u003e 900,000. We have requests that are failing but yet that do not exceed the 900,000. I have added debug logs in the boostrap code as follows:\r\n\r\n$totalResponseLength = strlen(print_r($response, true));\r\nprintf(\"Total response length: %d\\n\", $totalResponseLength);\r\n\r\nFor the request in question, the output was \r\nTotal response length: 892878\r\nwhich clearly is under 900,000 but yet when the lambda execution finishes, some 100K+ is added to the response length which fails the request with LambdaResponseTooLarge.\r\n\r\nSo my question is where is the 100K+ of addition bytes coming from\r\n ","author":{"url":"https://github.com/johnnikho","@type":"Person","name":"johnnikho"},"datePublished":"2020-04-29T21:51:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/64/php-lambda-layer/issues/64"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fb9e3e49-e4c2-09f5-d534-a203d23cb1f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAB2:377071:FC33FD:147A17A:697D435E |
| html-safe-nonce | e83eb0b370e213b937838d6390f134f3934297e72f753e22ef6c605aee002d0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUIyOjM3NzA3MTpGQzMzRkQ6MTQ3QTE3QTo2OTdENDM1RSIsInZpc2l0b3JfaWQiOiIzNzI4MDkyODczODE2MzU5Nzc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 023c334ff7b513ae9969b7ee43e871f9b20f48a85fc8a2df1afa2b28bf9ee9e6 |
| hovercard-subject-tag | issue:609383678 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackery/php-lambda-layer/64/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac22d5cb883624bde59b7af6851549d1bae8c442e73325233d1161afb4e16617/stackery/php-lambda-layer/issues/64 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac22d5cb883624bde59b7af6851549d1bae8c442e73325233d1161afb4e16617/stackery/php-lambda-layer/issues/64 |
| og:image:alt | We have logic in our code that will write the response to S3 and redirect the client to the S3 URL if the content length is > 900,000. We have requests that are failing but yet that do not exceed t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnnikho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/stackery/php-lambda-layer git https://github.com/stackery/php-lambda-layer.git |
| octolytics-dimension-user_id | 25157813 |
| octolytics-dimension-user_login | stackery |
| octolytics-dimension-repository_id | 156885130 |
| octolytics-dimension-repository_nwo | stackery/php-lambda-layer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 156885130 |
| octolytics-dimension-repository_network_root_nwo | stackery/php-lambda-layer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width