Cassandra
Cassandra

Reputation: 93

"! HTTP 426 Upgrade Required." error when using httr2 req_perform

I'm trying to download a media file via a webservice internal to the place i work at that allows us to access a bunch of media. The link points to a specific media and downloads it.

It worked with no issues until a couple days ago, where the following code:

library(httr2)
library(here)
req <- request("link")
resp <- req_perform(d, path=here("test"))

returned the following error:

Error in `req_perform()`:
! HTTP 426 Upgrade Required.

I'm at loss here since I don't fully comprehend what kind of cooking happens when requesting.

Does anyone have an idea of how to fix it?

Thank you and have a nice day!

Cassandra

Upvotes: 0

Views: 84

Answers (0)

Related Questions