-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event body parsing issue #1
Comments
Thanks! That's weird, I'm using POST requests on another project and that worked fine. I will do additional tests. Oh wait maybe I should do |
Yeah, that should be it. I sent the json directly in the body. |
The approach of Zend Expressive is interesting, they have a middleware that will apply the correct "strategy" of decoding the body based on the header: https://github.com/zendframework/zend-expressive-helpers/blob/master/src/BodyParams/BodyParamsMiddleware.php Slim's approach in it's base PSR-7 implementation is simpler: |
Slim's implementation looks natural and straightforward indeed. |
#2 fixes this problem. |
Fix brefphp#1 Support for POST body
* Add plugin update to create zip file before deployment and zip download and extraction in layers * Refactor JS code * Fix hook event and add iamRoleStatements * Add stripSlashes to s3 key * Fix custom variable path * Load jszip from node_modules folder * Fix zip stuff * Working vendor upload stuff * Add hashed vendor zip file to excludes * Extend check in bootstrap functions, update index.js and add before:remove:remove hook to clear vendor archives before deleting bucket * Disable file rename and only store the renamed version in s3 bucket, fix initial bug with bucketname * Add chalk coloring to console logs * Implement fixes from review - move to headObject, remove additional then * Define local constants instead of class variables and change log output * Remove exclude for hashed vendor zip file * Add vendor separation block to php docs * Add s3 download and unzip to function layer, update serverless plugin and add iam access for lambda to s3 bucket vendor files * Rewrite autoload_static.php from composer after extracting the vendor directory * Extract php code from bootstrap files into BrefToolBox class and update layer Dockerfiles * Update formating
Prepare automatic layer build
Added documentation to fail a record from a batch
#1325 Improve tests for basic auth and form data header
@mnapoli I could only use the httpHandler after applying this patch, else
$request
was containing a gibberish array.. maybe it's only me..Try with any of the json from https://apex.sh/docs/ping/webhooks/.
Else, thanks for this wrapper 😄
The text was updated successfully, but these errors were encountered: