Skip to content
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

Pass-through API route should support gzipped carto responses #37

Open
timwis opened this issue Feb 17, 2017 · 1 comment
Open

Pass-through API route should support gzipped carto responses #37

timwis opened this issue Feb 17, 2017 · 1 comment
Assignees
Milestone

Comments

@timwis
Copy link
Contributor

timwis commented Feb 17, 2017

@andrewbt discovered that carto gzips large payloads, and AWS' API Gateway doesn't seem to support that in its http proxy / pass-through. Thought I'd create a separate issue since it's a bit different from simply standing up the pass-through API via cloudformation code.

@timwis timwis added this to the MVP milestone Feb 17, 2017
@andrewbt
Copy link
Contributor

Resolved this via adding an "Accept-Encoding" header with value 'identity' to the API gateway Integration Request.

Testable here: https://zsp6egcjhf.execute-api.us-east-1.amazonaws.com/dev/carto/v2/sql?q=select * from indego_stations where ST_DWITHIN(the_geom::geography, ST_GeographyFromText('POINT(-75.1636 39.9524)'),500)

Screenshots:
screen shot 2017-02-23 at 12 13 02 pm
screen shot 2017-02-23 at 12 13 33 pm
screen shot 2017-02-23 at 12 13 57 pm
screen shot 2017-02-23 at 12 16 07 pm

@andrewbt andrewbt mentioned this issue Feb 23, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants