aws / aws/chalice

receiving gzip compressed JSON

Open
#1,659 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

I know Chalice can return compressed JSON:
https://chalice.readthedocs.io/en/stable/quickstart.html#tutorial-gzip-compression-for-json

But is there a way to receive gzip compressed JSON?
I tried:
```
echo '{ "mydummy" : "json" }' | gzip > body.gz
curl -v -i http://127.0.0.1:8000/test -H'Content-Encoding: gzip' -H "Accept: application/json" -H "Content-Type: application/json" --data-binary @body.gz
```

But got:
`{"Code":"BadRequestError","Message":"BadRequestError: Error Parsing JSON"}`

Contributor guide

Open the contributing guide

Research direction

Start with the linked Chalice gzip-compression tutorial and reproduce the request against the /test endpoint using the provided curl command. Determine whether Chalice supports gzip-compressed request bodies and document or implement the behavior so the supplied compressed JSON request has a clear, verified outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.