OdyseeTeam / odysee-api

API server for Odysee
https://odysee.com
MIT License
229 stars 49 forks source link

app/publish: improve error handling on fetch file #369

Closed rnd closed 3 years ago

rnd commented 3 years ago

Before this we added a typed error on publish package to determine what errors that should be retried and exclude request error like io.ErrUnexpectedEOF.

Problem is that error can happens on request parse too.

This commit fix the issue by separating request error and fetch error into separate type.

Fixes #368

anbsky commented 3 years ago

Otherwise lgtm 👍