ipfs / ipfs/ipfs-check

Improve error when a mutliaddr without peer ID is passed

Open
#64 0 comments 1 reaction 0 assignees View on GitHub
dif/medium effort/days P2
Dominant language
Go
Stars
60
Forks
27
PR merge metrics
No merged PRs in 30d

Description

## UX Problem

Passing a multiaddr without a peer ID will yield the following error:

`⚠️ backend returned an error: 500 invalid p2p multiaddr`

For example:
![Screenshot 2024-09-06 at 12 36 47 PM](https://github.com/user-attachments/assets/eb94a016-abd9-416f-b252-c0991a70d71b)

## Suggested solution

Either perform client side validation on the multiaddr and require a PeerID in the multiaddr or improve the error message from the backend.

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.