Server returned response code 502 for choice.php

apologue

New member
dpills.ash gets distention pills by setting the property choiceAdventure536 to 1 and then running adventure(1,$location[Domed City of Grimacia]) until all maps have been consumed. Recently, this has annoyingly often failed with Server returned response code 502 for choice.php, after which the choices need to be completed manually. Is there something than can be done about this? Catch the issue and retry maybe?
 
"5xx" errors are server-side errors.
Which is to say, it is a KoL bug.
You can report it to KoL - as I have done for this exact issue in the monorail station - but don't expect a response.

The domed city and the monorail station are chains of choices. You have to know which choice in the chain failed, if you want to catch and retry. Which your script really should known.
 
Since the adventure command knows the target, one is tempted to think it would be best equipped to handle the error. Then again, maybe suppressing server-side errors would violate the design pattern, or potentially cause other issues.

So, assuming the adventure command is not the best approach of executing the choice, what would be the recommended approach of handling such a choice adventure in an ash script?
 
Back
Top