[GH-ISSUE #298] Don't return html links in API responses #7521

Closed
opened 2026-04-21 19:27:02 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @lostdusty on GitHub (Jan 1, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/298

I was playing with the api while writing gobalt, and i saw that the api returns html code if the url provided is invalid, shown on the screenshot below:
image

I believe this shouldn't happen, and the api should return only regular text on the text response body.

Originally created by @lostdusty on GitHub (Jan 1, 2024). Original GitHub issue: https://github.com/imputnet/cobalt/issues/298 I was playing with the api while writing [gobalt](https://github.com/princessmortix/gobalt), and i saw that the api returns html code if the url provided is invalid, shown on the screenshot below: ![image](https://github.com/wukko/cobalt/assets/47502554/eb29e5d2-7026-4fe4-a9ac-3f806a46daf3) <!-- guess who forgot how markdown works --> I believe this shouldn't happen, and the api should return only regular text on the text response body.
GiteaMirror added the feature requestnext major labels 2026-04-21 19:27:02 -05:00
Author
Owner

@ethrydevelops commented on GitHub (Jan 6, 2024):

it seems as though that is what defines what the cobalt website returns, the api should ideally send an error code and the website shows whatever information should be shown

image

<!-- gh-comment-id:1879638858 --> @ethrydevelops commented on GitHub (Jan 6, 2024): it seems as though that is what defines what the cobalt website returns, the api should ideally send an error code and the website shows whatever information should be shown ![image](https://github.com/wukko/cobalt/assets/58019814/fe3efd2d-3e17-467e-a478-bcd3fe136306)
Sign in to join this conversation.