Page MenuHomePhabricator

restbase endpoint reporting incorrect content-encoding: gzip
Closed, ResolvedPublic

Description

When I curl the following url:

curl -v http://127.0.0.1:7231/en.wikipedia.org/v1/page/mobile-html/Main_Page -v

on any restbase host, I get a header stating

content-encoding: gzip

but the page body isn't compressed, so this is both incorrect and makes our monitoring fail.

Event Timeline

Joe assigned this task to mobrovac.
Joe raised the priority of this task from to Needs Triage.
Joe updated the task description. (Show Details)
Joe added projects: RESTBase, Services, SRE.
Joe subscribed.

Change 249465 had a related patch set uploaded (by Mobrovac):
RESTBase: Strip redundant headers from back-end services

https://gerrit.wikimedia.org/r/249465

GWicke subscribed.

The fix was deployed this morning.

Reopening, as this needs the config change to be deployed as well.

Change 249465 merged by Giuseppe Lavagetto:
RESTBase: Strip redundant headers from back-end services

https://gerrit.wikimedia.org/r/249465

Deployed, fixed:

icinga-wm: RECOVERY - Restbase endpoints health on restbase2001 is OK: All endpoints are healthy

Somehow I'm still getting gzip encoding in staging, using the curl command in the task description. I have verified that both the config and the code are up to date, and restarted the service for good measure.

Truncating the mobile-html data CF and a restart did the trick.