Page MenuHomePhabricator

X-Wikimedia-Debug header can make strange results for errors from Toolforge tools
Open, Needs TriagePublic

Description

Event Timeline

Krinkle created this task.Jul 9 2019, 10:20 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 9 2019, 10:20 PM
bd808 added a subscriber: bd808.Jul 9 2019, 10:33 PM

@Krinkle did you happen to have X-Wikimedia-Debug active when you did this?

if ($http_x_wikimedia_debug) {
    #error_page 403 /admin/?403; # bug 64393
    #error_page 404 /admin/?404; # bug 64393
    error_page 500 /admin/?500;
    error_page 502 /admin/?502;
    error_page 503 /admin/?503;
}

The /admin/?502 route is not doing what I expect right now, it should be returning the same response as https://tools.wmflabs.org/admin/error/502

Yep, turns out I did have X-Wikimedia-Debug enabled.

bd808 renamed this task from When the Toolforge proxy returns HTTP 502, it confusingly renders the Toolforge home page to X-Wikimedia-Debug header can make strange results for errors from Toolforge tools.Jul 10 2019, 7:32 PM