Eric Mastro d87ea97b34
fix(rest): download unknown cid
Downloading a CID that is unknown to the network would wait for the blockexchange to try to get the data. However, a subsequent API call, eg upload for that CID, or a blockexchange timeout would cause the dagger node to crash, due to an attempt to complete a future that had already been completed.

We were able to narrow this down to an attempt to call  `resp.finish()` when the download block had already returned an `RestApiResponse` (and never sent any chunks to the response from the libp2p stream).

Change the HTTP response code for an unknown cid from 400 to 404.

Fix spelling mistake “cunk”.

Co-authored-by: Michael Bradley <michaelsbradleyjr@gmail.com>
2022-01-31 13:25:12 +11:00
2022-01-31 13:25:12 +11:00
2022-01-12 19:55:51 -06:00
2022-01-12 16:52:09 -06:00
2021-02-02 19:29:52 +01:00
2021-11-25 09:37:12 +01:00
2022-01-10 09:32:56 -06:00
2021-02-25 18:23:22 -06:00
2022-01-10 09:32:56 -06:00
2022-01-10 09:32:56 -06:00
2021-12-20 13:12:18 -06:00
2021-11-25 09:37:12 +01:00
2021-11-16 16:51:24 +01:00
Description
Decentralized Durability Engine
https://codex.storage
Languages
Nim 94.6%
Python 3.6%
Nix 0.7%
Makefile 0.6%
Shell 0.4%
Other 0.1%