Skip to content

2.1.5: /api/v3/node/peers returns badly typed data what doesn't follow API specs #6535

@mjadach-iv

Description

@mjadach-iv

Current Behavior

In the /api/v3/node/peers API call, for the connected nodes array, now you can get an object with backoff property set at null or number instead of only number as in 2.1.4 and before while the documentation of the API states that the backoff value can only be a double:

image

One of the 2 is wrong.

Context (Environment)

Because of this error, Node Admin stopped functionning properly as we expect the value not to be null, and therefore due to thorough type chceck, we do not get peers.

Version: 2.1.5+commit.4ce12626

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions