Skip to content

Add more context in the error if tryint to access a v0 CID (starting with "qm") #167

@pradel

Description

@pradel

It is confusing for users unfamiliar with CID versions that a v0 won't work on a subdomain gateway. So we could improve the error message to point the user to the right direction. Right now the message is 400 invalid CID: qmpdslheieutmsrhgfaty5azjefeb2auqe1u32u5hnsyke: To parse non base32 or base58btc encoded CID multibase decoder must be provided.
Could be improved to smth like 400 invalid CID: qmpdslheieutmsrhgfaty5azjefeb2auqe1u32u5hnsyke: To parse non base32 or base58btc encoded CID multibase decoder must be provided. It looks like you are using a CIDv0, try converting it to CIDv1.
Full discussion in Discord https://discord.com/channels/1247475892435816553/1273237594985201816/1354758521060720651

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions