Bug - Not A Bug Mafia aborts when using Grimacite Prime maps

ereinion

Member
I have a script I use to collect new distention / dog hair pills when I run out of them, however for the last few days (I'm guessing since KoL switched servers), mafia aborts whenever I attempt to use a Map to Safety Shelter Grimacite Prime:

Code:
choiceAdventure536 => 2
[COLOR=blue]Libram summons #1 will      cost 1 MP. Will summon when MP > 3440.[/COLOR]
Using 1 Map to Safety      Shelter Grimace Prime...

[34814] Map to Safety Shelter Grimace Prime
Action:      Down the Hatch!
Action: Have a Drink
[COLOR=red]Server      returned response code 500 (Internal Server Error) for choice.php[/COLOR]

I'm guessing this may be a KoL and not a mafia bug - especially as I don't run into the bug every time I use a map - but I figured I'd mention it here anyway, just in case it has something to do with the choice adventure handling for this item.
 
Last edited:
I could point you to the actual RFC, but Wikipedia has an article on List of HTTP status codes.

The main thing you need to take away is this:

5xx Server Error
The server failed to fulfill an apparently valid request.

Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has encountered an error or is otherwise incapable of performing the request. Except when responding to a HEAD request, the server should include an entity containing an explanation of the error situation, and indicate whether it is a temporary or permanent condition. Likewise, user agents should display any included entity to the user. These response codes are applicable to any request method
Any error code in the 500's is a server error. KoLmafia has submitted a valid request, but the server screwed up and tells you that by giving you an error in the 500's.

This is not a bug in KoLmafia and there is nothing we can "fix" to make KoL's servers not return such an error code.
 
there is nothing we can "fix" to make KoL's servers not return such an error code.
There are times I wish mafia would simply retry the request, but question of when it is safe to retry and when it isn't is not a can of worms I want to see opened.
 
In theory, any should be "safe" to retry - but there is no guarantee that KoL will not infinitely fail in the same way, and having us repeatedly hammer the server Just In Case it is ready to do the right thing would not be appreciated, I expect.

I saw half a dozen 502 Bad Gateway requests attempting to log in this morning. I just hit the login button each time and eventually it worked. I'm not especially impressed with KoL's infrastructure improvements.
 
It depends on what you're doing. I think. You wouldn't want to retry something that's using up inventory. As far as hammering the server, some kind of exponential back off should be safe.

Hopefully, they'll finally get a handle on this problem and fix it. Hope?
 
Well....it depends on whether it fails the request AFTER doing something to your game state, or before.
I was assuming the latter, but, you know what they say about ass-u-me'ing something...

The HTTP spec specifically says that we should report the problem to the user and let them decide what to do.
We do that.
 
Back
Top