fix: list_listener crash with invaild json
This commit is contained in:
parent
28859bad7d
commit
a583c221f0
|
@ -22,7 +22,8 @@ File format:
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- Fix GET `/auth_clientid` and `/auth_username` counts. [#8655](https://github.com/emqx/emqx/pull/8655)
|
- Fix GET `/auth_clientid` and `/auth_username` counts. [#8655](https://github.com/emqx/emqx/pull/8655)
|
||||||
- Add a idle timer for ExProto UDP client to avoid client leaking [#8628](https://github.com/emqx/emqx/pull/8628)
|
- Add an idle timer for ExProto UDP client to avoid client leaking [#8628](https://github.com/emqx/emqx/pull/8628)
|
||||||
|
- Fix GET `/listeners/` crashes when listener is not ready. [#8752](https://github.com/emqx/emqx/pull/8752)
|
||||||
|
|
||||||
## v4.3.18
|
## v4.3.18
|
||||||
|
|
||||||
|
|
|
@ -72,5 +72,4 @@ format(Listeners) when is_list(Listeners) ->
|
||||||
[ Info#{listen_on => list_to_binary(esockd:to_string(ListenOn))}
|
[ Info#{listen_on => list_to_binary(esockd:to_string(ListenOn))}
|
||||||
|| Info = #{listen_on := ListenOn} <- Listeners ];
|
|| Info = #{listen_on := ListenOn} <- Listeners ];
|
||||||
|
|
||||||
format({error, Reason}) -> [{error, Reason}].
|
format({error, Reason}) -> [{error, iolist_to_binary(io_lib:format("~p", [Reason]))}].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue