Skip to content

gateway: return user-friendly HTML with HTTP errors #262

@lidel

Description

@lidel

Currently, we return text/plain with context of err.Error() of some sort. This if fine for curl, but very user hostile in web browser context.

Proposed improvement

basic human needs (#298)

nice to have

below could be a follow-up PR. may not be a good idea to hardcode another HTTP endpoint and use of https://pl-diagnose.onrender.com for every gateway deployment, perhaps better to wait for ipfs/in-web-browsers#207 and webtransport transport rollout. or we could use https://pl-diagnose.onrender.com and https://cid.contact/ as default, with config options to change/disable them.

Metadata

Metadata

Assignees

Labels

P1High: Likely tackled by core team if no one steps updif/mediumPrior experience is likely helpfuleffort/daysEstimated to take multiple days, but less than a weektopic/gatewayIssues related to HTTP Gateway

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions