Skip to content

Getting SSL certificate error on blsAPI() #39

@yonifan

Description

@yonifan

Running this code, I get the following error:
`payload <- list('seriesid'=c("CUUR0000SA0"),'startyear'='2023', 'endyear'='2024') >
response <- blsAPI(payload,2)

Error in curl::curl_fetch_memory(url, handle = handle) : SSL peer certificate or SSH remote key was not OK: [api.bls.gov] server certificate verification failed. CAfile: none CRLfile: none`

This used to work for me. Probably a server side thing. But would still appreciate a mitigation on the SSL certificate error calling curl.
Maybe the error should be caught, offering a solution to accept the certificate.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions