Page MenuHomePhabricator

Inconsistent content type header value in Page Lookup API
Closed, ResolvedPublic3 Estimated Story Points

Description

When I make a GET request to https://api.enterprise.wikimedia.com/v1/pages/meta/enwiki/Earth with a Accept: application/json header, the response Content-Type header randomly changes between application/json and text/plain. It doesn't seem to be predictable which I get, but this is just repeatedly making the exact same request with no changes to URL, headers, or body.

Event Timeline

Lena.Milenko renamed this task from Caching layer problem to Inconsistent content type header value in Page Lookup API.Aug 1 2022, 11:30 AM
Protsack.stephan updated the task description. (Show Details)

We only return application/json so the Accept header do not change anything. It's probably caching layer problem. So the first time you are getting application/json cuz it returns from the API second time it returns from cache and falls back to default content type.

Alexander.lauie changed the task status from Open to In Progress.Aug 9 2022, 11:12 AM
Alexander.lauie claimed this task.
Lena.Milenko changed the task status from In Progress to Open.Aug 15 2022, 11:34 AM