Ref: PR #190
Description
Selling an Invisible Joker (at 2/2 charges) causes the endpoint to hang indefinitely. The response is never sent and the request times out on the client side.
Steps to Reproduce
- Start a run:
start({"deck": "RED", "stake": "WHITE", "seed": "INVIS3"})
- Select a blind:
select()
- Add Invisible Joker:
add({"key": "j_invisible"})
- Set chips high to auto-win:
set({"chips": 1000})
- Play a hand:
play({"cards": [0]})
- Cash out:
cash_out()
- Go to next round:
next_round()
- Select the next blind:
select()
- Set chips high:
set({"chips": 1000})
- Play a hand (round 2 to charge Invisible):
play({"cards": [0]})
- Cash out:
cash_out()
- Add a joker to the right of Invisible:
add({"key": "j_greedy_joker"})
- Sell the Invisible Joker:
sell({"joker": 0})
- The request hangs indefinitely (no response)
Expected Behavior
The endpoint should return either success (joker sold) or a timeout error after a reasonable period. It should not hang forever.
Actual Behavior
The sell request never returns. The server log shows "Selling joker 'Invisible Joker'" but no corresponding OK or ERR response. The connection remains open until the client times out.
Environment
- OS: macOS
- Lovely version: 0.8.0
- SMODS version: v1.0.0~BETA-1221a
- BalatroBot commit: 084044e
Files
Ref: PR #190
Description
Selling an Invisible Joker (at 2/2 charges) causes the endpoint to hang indefinitely. The response is never sent and the request times out on the client side.
Steps to Reproduce
start({"deck": "RED", "stake": "WHITE", "seed": "INVIS3"})select()add({"key": "j_invisible"})set({"chips": 1000})play({"cards": [0]})cash_out()next_round()select()set({"chips": 1000})play({"cards": [0]})cash_out()add({"key": "j_greedy_joker"})sell({"joker": 0})Expected Behavior
The endpoint should return either success (joker sold) or a timeout error after a reasonable period. It should not hang forever.
Actual Behavior
The
sellrequest never returns. The server log shows "Selling joker 'Invisible Joker'" but no corresponding OK or ERR response. The connection remains open until the client times out.Environment
Files