Hello, just providing an update: the APIs that were broken are now working; however, another two APIs that I use are now broken on my end. The last one is not particularly relevant to my purposes, but the first one also appeared with a different error message (self-signed certificate in certificate chain):
> sidrar::get_sidra(api="/t/8888/n1/all/v/12606/p/all/c544/129314/d/v12606%205")
All others arguments are desconsidered when 'api' is informed
Error in curl::curl_fetch_memory(url, handle = handle) :
SSL peer certificate or SSH remote key was not OK [apisidra.ibge.gov.br]: SSL certificate problem: self-signed certificate in certificate chain
> rbcb::get_series(433)
Error in `map()`:
ℹ In index: 1.
ℹ With name: 433.
Caused by error in `curl::curl_fetch_memory()`:
! SSL peer certificate or SSH remote key was not OK [api.bcb.gov.br]: SSL certificate problem: unable to get local issuer certificate
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/purrr_error_indexed>
Error in `map()`:
ℹ In index: 1.
ℹ With name: 433.
Caused by error in `curl::curl_fetch_memory()`:
! SSL peer certificate or SSH remote key was not OK [api.bcb.gov.br]: SSL certificate problem: unable to get local issuer certificate
---
Backtrace:
▆
1. ├─rbcb::get_series(433)
2. │ ├─rbcb::rbcb_get(objs, start_date, end_date, last)
3. │ └─rbcb:::rbcb_get.sgs(objs, start_date, end_date, last)
4. │ └─purrr::map_dfr(...)
5. │ └─purrr::map(.x, .f, ...)
6. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
7. │ ├─purrr:::with_indexed_errors(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ ├─purrr:::call_with_cleanup(...)
10. │ └─rbcb (local) .f(.x[[i]], ...)
11. │ └─rbcb:::http_download("get", url)
12. │ └─rbcb:::http_getter(...)
13. │ └─httr::GET(url = url, config = list(), handle = h, if (verbose) verbose())
14. │ └─httr:::request_perform(req, hu$handle$handle)
15. │ ├─httr:::request_fetch(req$output, req$url, handle)
16. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
17. │ └─curl::curl_fetch_memory(url, handle = handle)
18. └─curl:::raise_libcurl_error(...)
19. └─base::stop(e)
Run rlang::last_trace(drop = FALSE) to see 3 hidden frames.
> rlang::last_trace(drop = FALSE)
<error/purrr_error_indexed>
Error in `map()`:
ℹ In index: 1.
ℹ With name: 433.
Caused by error in `curl::curl_fetch_memory()`:
! SSL peer certificate or SSH remote key was not OK [api.bcb.gov.br]: SSL certificate problem: unable to get local issuer certificate
---
Backtrace:
▆
1. ├─rbcb::get_series(433)
2. │ ├─rbcb::rbcb_get(objs, start_date, end_date, last)
3. │ └─rbcb:::rbcb_get.sgs(objs, start_date, end_date, last)
4. │ └─purrr::map_dfr(...)
5. │ └─purrr::map(.x, .f, ...)
6. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
7. │ ├─purrr:::with_indexed_errors(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ ├─purrr:::call_with_cleanup(...)
10. │ └─rbcb (local) .f(.x[[i]], ...)
11. │ └─rbcb:::http_download("get", url)
12. │ └─rbcb:::http_getter(...)
13. │ └─httr::GET(url = url, config = list(), handle = h, if (verbose) verbose())
14. │ └─httr:::request_perform(req, hu$handle$handle)
15. │ ├─httr:::request_fetch(req$output, req$url, handle)
16. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
17. │ └─curl::curl_fetch_memory(url, handle = handle)
18. ├─curl:::raise_libcurl_error(...)
19. │ └─base::stop(e)
20. └─purrr (local) `<fn>`(`<crl_r___>`)
21. └─cli::cli_abort(...)
22. └─rlang::abort(...)