-
Notifications
You must be signed in to change notification settings - Fork 875
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
Improve UX when $IPFS_PATH/api exists and API is offline #713
Comments
Reminder to self: #711 (review). |
(updated description to reflect what we learned during today's sync call) |
I believe we can close this now as #722 was closed! |
Just tested
We need to add proper error handling for that setup :) |
@lidel that error might be caused by this line which will be removed as soon as the CORS PR (#738) is merged 😄 So it won't be a problem as we won't be testing the existence of any files. |
That case is already solved. I'm closing this for now since we've already added the necessary logic for the scenarios here described. |
The
$IPFS_PATH/api
file is used by a lot of developers to talk to remote nodes (learning from ipfs-companion users). THow to improve UX for "the API defined in
$IPFS_PATH/api
is offline" scenario?Perhaps like this:
$IPFS_PATH/api
file exists and is different from the one in theconfig
fileapi
file points at remote API which producesECONNREFUSED
error,{multiaddr}
and display error window with built-in UI for dealing with it.It could be a styled window similar to this mockup but with nice UI to:
api
file$EDITOR
or provide built-in editor directly in the error window similar to what ipfs-webui doesipfs repo fsck
api
and potential lockfiles and try again (should be safe, technical user can always restore file by hand)The text was updated successfully, but these errors were encountered: