microlinkhq / open

4 stars 2 forks source link

Rest api does not tell if domain didn't exist #28

Closed Salmela closed 4 years ago

Salmela commented 4 years ago

Bug Report

Current Behavior

Currently the api gives status: "success" field even if the whole domain does not exist. And there seems to be nothing to distinguish the nonexistent domain response from any other random web page response.

Expected behavior/code

I expected that the status field would not be success or that there would be some other way to detect that the page does not exists.

Additional context/Screenshots

Example use case with your free rest api: https://api.microlink.io/?url=https%3A%2F%2Fwww.awfghtegugsg-BAD-DOMAIN-wifwufwf.com

Kikobeats commented 4 years ago

Closing because it's basically the same than https://github.com/microlinkhq/open/issues/29