ipfs / ipfs/ipfs-desktop

Better Error Handling Around ipfsd-ctl

Open
#2,546 0 comments 1 reaction 0 assignees View on GitHub
kind/enhancement P2
Dominant language
JavaScript
Stars
6.6k
Forks
903
Avg merge
4d 13h
Merged PRs (30d)
5

Description

[`ipfsd-ctl`](https://www.npmjs.com/package/ipfsd-ctl) is used to control the kubo node shipped with ipfs-desktop, however we're not catching all of those errors effectively. These do not make it to `errors.log` or reported in `countly` metrics.

For example these [Config Missing](https://github.com/ipfs/ipfs-desktop/issues?q=is%3Aissue+%22Unexpected+end+of+JSON+input%22+) errors can be handled and an alternative can be provided instead of asking users to create a bug report.

```[tasklist]
### Tasks
- [ ] Instrument Error and Catch those. Report those errors in `errors.log`
- [ ] Provide an alternative to users in case this happens.
- [ ] Report this on countly
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.