filecoin-saturn / L1-node

Filecoin Saturn L1 Node • The edge cache layer of Filecoin's decentralized CDN 🪐
Other
140 stars 50 forks source link

Catch exception #347

Closed qianhh closed 1 year ago

qianhh commented 1 year ago

https://github.com/filecoin-saturn/L1-node/blob/e61e8a461fb1190bc54dd13c50b03e5e11d01f20/container/shim/src/fetchers/lassie.js#L98

No exception was caught here.

2023-04-26T00:07:22.460Z node@mainnet:lassie:error Error fetching QmVhHcRcYwU3jPGDSVHSdtuG2r1JGiANQTDCsLsKh7kV7h: FetchError request to http://127.0.0.1:7766/ipfs/QmVhHcRcYwU3jPGDSVHSdtuG2r1JGiANQTDCsLsKh7kV7h?format=car&clientId=0fe0a2ef-05a5-44de-9354-47ab5689318f&car-scope=file&protocols=bitswap failed, reason: socket hang up

This will cause the container to restart.

willscott commented 1 year ago

that's in this try-catch block? the log line you show comes from the catch block.

qianhh commented 1 year ago

Oh, sorry, there is a catch operation, but why does the program still exit unexpectedly?

DiegoRBaquero commented 1 year ago

Root issue: https://github.com/filecoin-project/lassie/issues/211