-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better error handling #119
Comments
Could you open this as an issue on Swarm itself please, maybe as a SWIP? Regarding the example of |
I agree that Swarm could improve on its error reporting capabilities, but I think there is already a lot possible actually without need to touch Swarm itself. For example with the Also, I think that as an abstraction library it should be avoided to expose the transport errors (eq. |
I agree these could be improved, but the first step should be that the possible error messages need to be specified and documented by Swarm. I don't want to be in the situation of trying to be "too smart for our own good", where the client is trying to interpret error messages and breaks once they change in a new server release. The fact that Swarm returns a That's why I think creating a SWIP is the best way to start the process, so we can have clear expectations on the client side about what types or error can be returned (HTTP status codes), how to parse them (ex a |
Well I guess makes sense. Agree about the There already seems to be an endeavor up in this direction ethersphere/swarm#1601 Let see what will be the result. |
The error handling should be improved as the Errors do not really say much about the problems that they represent.
For example, calling
bzz.list(hash)
on a hash that is not manifest results in "Internal Server Error" that does not help at all.The text was updated successfully, but these errors were encountered: