Open callum-savage opened 1 year ago
Additionally, the request is being made 5 times when it's obviously going to get the same error every time. This makes the response much slower than it needs to be. "TooManyResults" should be returned after the first error
I think the best way to deal with this will be to upgrade to json2, which will require a full rewrite of make_bom_request
This article has some good pointers: https://httr2.r-lib.org/articles/wrapping-apis.html
In the example below, the error message is not being caught.
Created on 2023-05-23 with reprex v2.0.2