jonthegeek / wapir

Web APIs with R
https://wapir.io/
22 stars 3 forks source link

How can I handle API errors? #55

Open psolymos opened 8 months ago

psolymos commented 8 months ago

Just wanted to leave some notes here for the chapter How can I handle API errors?.

I made the tryr package to reflect some best practices.

You might also find the examples useful, there is a shiny app that uses the swagger page and also shows STDERR/STDOUT.

Great initiative! I will be happy to give feedback once you develop it further.

jonthegeek commented 7 months ago

Oooooh, nice! I've hand-rolled some things for plumber API error handling, but it's good to see another take! I'll dig into this much more deeply when I get to that half of the book (and likely before that)!

Most of the action for this project is happening over in the book club where I'm sorting out my thoughts. Hopefully I'll have some updates over here (other than issues) soon 😄