Skip to content

Error: TLS v1 Alert Protocol Version #27

Description

@jaret-statbid

Hi Johannes,

Thank you so much for your work on this project (among others). It's been incredibly valuable to me!

I've been using the RBingAds package for many months now, but just yesterday, I started receiving a new error when running my usual code:

load_bing_data(bing_auth = bing_auth,
                               account_id = paste(accountId),
                               report = "CampaignPerformanceReport",
                               columns = c("CampaignName","Clicks"),
                               start = paste("2021-06-01"),
                               end = paste("2021-06-30"))

"Error in function (type, msg, asError = TRUE) :
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version"

I tried similar, simple queries, using different Bing accounts I have access to, as well as on 2 different PCs, and still always got the same error.

I dug around in the source code enough that I think I may have narrowed down the source of the error to the curlPerform call in the get_report_id function:

  curlPerform(
    url = url,
    httpheader = headerFields,
    postfields = body,
    writefunction = h$update
  )

This call alone produces the same error message. Noticing the "tlsv1 alert protocol version" message, I wonder if a no longer supported TLS version is being used? I see that curlPerform has an sslversion option, which I tried changing the value of, but when selecting sslversion = 5, 6, or 7, I just get an "Unsupported SSL protocol version" error instead.

I'm a little lost for direction from here. Any help or insights you could share would be greatly appreciated. Thank you.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions