microlinkhq / sdk

Make any URL embeddable. Turn any URL into a beautiful link preview.

Home Page:https://microlink.io/sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent app crashing when rate limit exceeded

mikewheaton opened this issue · comments

I hit the daily limit today and it caused the app to crash while using the MicrolinkCard React component:

image

It would be better to display a friendly message on the card about the limit being exceeded, perhaps with a link to the pricing page. Or have a missed a step in being able to handle this error and display alternate UI?

Could be an option!

The current approach avoid introduces too much code into the SDK, but I'm understand that could be no clear know what is happening

We can capture the error on 429 status, need to determinate what to show could he useful 🤔

It should be fixed in the current version 🙂