Commit f07e5cc
authored
[FIXED] (2.11) Too Many Requests error (#6410)
When sending too many requests into a stream it's rate-limited. However,
that would result in the following error using the Go client (as part of
a `nats bench`): `invalid jetstream publish response` due to `unexpected
end of JSON input`, since the returned pub ack message is empty.
This PR introduces a specific error for 429 Too Many Requests so the
clients can properly handle this without further changes.
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>3 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
1651 | 1661 | | |
1652 | 1662 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
479 | 482 | | |
480 | 483 | | |
481 | 484 | | |
| |||
660 | 663 | | |
661 | 664 | | |
662 | 665 | | |
| 666 | + | |
663 | 667 | | |
664 | 668 | | |
665 | 669 | | |
| |||
2503 | 2507 | | |
2504 | 2508 | | |
2505 | 2509 | | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
2506 | 2520 | | |
2507 | 2521 | | |
2508 | 2522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4336 | 4336 | | |
4337 | 4337 | | |
4338 | 4338 | | |
4339 | | - | |
| 4339 | + | |
| 4340 | + | |
4340 | 4341 | | |
4341 | 4342 | | |
4342 | 4343 | | |
| |||
0 commit comments