Page MenuHomePhabricator

Weird error HTTP 405 Method Not Allowed on Toolforge
Closed, ResolvedPublic

Description

I'm having a very strange error in the WikiScore tool, hosted on Toolforge. On some occasions, depending on the speed at which I make POST requests, the server returns the 405 error randomly. I haven't found any apparent flaw in the code that could produce this error, so I assume it's something from Toolforge itself.

Usual HTTP response
200 OK
Cache-Control: no-store, no-cache, must-revalidate
Content-Encoding: gzip
Content-Security-Policy-Report-Only: default-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: mediastream: *.toolforge.org wikibooks.org *.wikibooks.org wikidata.org *.wikidata.org wikimedia.org *.wikimedia.org wikinews.org *.wikinews.org wikipedia.org *.wikipedia.org wikiquote.org *.wikiquote.org wikisource.org *.wikisource.org wikiversity.org *.wikiversity.org wikivoyage.org *.wikivoyage.org wiktionary.org *.wiktionary.org *.wmcloud.org *.wmflabs.org wikimediafoundation.org mediawiki.org *.mediawiki.org wss://wikiscore.toolforge.org; report-uri https://csp-report.toolforge.org/collect;
Content-Type: text/html; charset=UTF-8
Date: Mon, 23 Oct 2023 00:04:51 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Server: nginx/1.14.2
Strict-Transport-Security: max-age=31622400
X-Clacks-Overhead: GNU Terry Pratchett
Response with error
405 Method Not Allowed
Allow: OPTIONS, HEAD, GET
Content-Length: 153
Content-Type: text/html; charset=utf-8
Date: Mon, 23 Oct 2023 00:04:57 GMT
Server: nginx/1.14.2

<!doctype html>
<html lang=en>
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>

Event Timeline

taavi subscribed.

This seems to be coming from the proxy error handler.

Em T349452#9271561, @taavi escreveu:

Well... the error continues, but now it's a little different:

image.png (823×710 px, 42 KB)

If helps:

Response with error
502 Bad Gateway
Content-Length: 2945
Content-Type: text/html; charset=utf-8
Date: Mon, 23 Oct 2023 23:35:34 GMT
Server: nginx/1.14.2
dcaro moved this task from Done to In Review on the Toolforge (Toolforge iteration 01) board.
dcaro moved this task from In Review to Done on the Toolforge (Toolforge iteration 01) board.

Well... the error continues, but now it's a little different:

This is an error with the tool, not with the Toolforge infrastructure.