Module 12 · In Studio · challenge 3 of 3 in this lesson
shouldRetry retries nil, 408, 429 and 5xx, and nothing else
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Write the five rules in challenges/work/backend_outbox.luau. They send nothing, so the test needs no secret and no backend. The written solution is challenges/solutions/http-and-secrets.md. In Play, run game.ServerScriptService.RunGameTests:Invoke("http-and-secrets", "http-outbox-rules") and paste the pass code here.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("http-and-secrets", "http-outbox-rules")in the server command bar. Copy the pass code from Output.
Done means
- shouldRetry retries nil, 408, 429 and 5xx, and nothing else
- backoff doubles from the base, starts at the base for attempt 1 or lower, and never passes the cap
- push appends, drops the oldest until the queue fits and returns how many it dropped
- underLimit counts only requests newer than the window and allows one more below the limit
- summary keeps exactly id, endedAt, roundSeconds and playerCount, with no names or UserIds
- challenges/http-and-secrets.luau prints TEST PASS for every check