You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
* Add test for Client.Status unmarshalling incomplete deals
Occassionally, the /status and /user/uploads endpoints return JSON
whose "deals" array contains elements missing time.Time fields such as
_activation_, _created_, and _updated_. This results in
Client.Status() and Client.List() returning errors to the effect of
"parsing time "" as "2006-01-02T15:04:05.999Z07:00": cannot parse ""
as "2006"". As per
web3-storage/web3.storage#1512 (comment)
, consumers of these endpoints should accept such data gracefully.
This commit comprises a failing test illustrating the problem.
* status: Ignore empty _created_ and _updated_ fields in "deals" array
Occassionally, the /status and /user/uploads endpoints return JSON
whose "deals" array contains elements missing time.Time fields such as
_activation_, _created_, and _updated_. This results in
Client.Status() and Client.List() returning errors to the effect of
"parsing time "" as "2006-01-02T15:04:05.999Z07:00": cannot parse ""
as "2006"". As per
web3-storage/web3.storage#1512 (comment)
, consumers of these endpoints should accept such data gracefully.
This commit fixes the failing test introduced in 110a25a.
Co-authored-by: Ben <[email protected]>
0 commit comments