Rspotify icon indicating copy to clipboard operation
Rspotify copied to clipboard

Error in curl::curl_fetch_memory(url, handle = handle)

Open ns3115neha opened this issue 8 years ago • 5 comments

While Generating the O-auth it always allows me to sign in the spotify page but then exists with the error Error in curl::curl_fetch_memory(url, handle = handle) Stream error in the HTTP/2 framing layer

It was encountered Before as well but i added the httr::config(http_version = 2) to the intial authentication , I am unsure if its has to do something with not generating me the O-AUTH code ,

ns3115neha avatar Dec 20 '16 15:12 ns3115neha

This is still a problem

RMHogervorst avatar Mar 01 '17 11:03 RMHogervorst

Can you share a piece of code?

tiagomendesdantas avatar Mar 01 '17 12:03 tiagomendesdantas

I created two functions that return the correct spotify clientid and secret (so I never have to type them in or see them in the rhistory.

library(Rspotify)
find_clientID <- function(){
    Sys.getenv("SPOTIFY_CLIENTID")
}

find_spotify_secret <- function(){
    Sys.getenv("SPOTIFY_SECRET")
}
spotifyOAuth("bla", find_clientID(), find_spotify_secret())

This opens the spotify authentification page, where I log in untill the browser displays: Authentication complete. Please close this page and return to R. I do and the R console says:

spotifyOAuth("bla", find_clientID(), find_spotify_secret())
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Stream error in the HTTP/2 framing layer

I've tried to install the newest version of curl from github, but that is a bit difficult because devtools uses curl and it errors the install.

RMHogervorst avatar Mar 01 '17 13:03 RMHogervorst

Some session info Session info ------------------------------------ setting value
version R version 3.3.2 (2016-10-31) system x86_64, mingw32
ui RStudio (1.0.136)
language (EN)
collate Dutch_Netherlands.1252
tz Europe/Berlin
date 2017-03-01
curl 2.3 2016-11-24 devtools 1.12.0 2016-06-24

RMHogervorst avatar Mar 01 '17 13:03 RMHogervorst

I had this error (trying to access the API of github) when i was behind a proxy. I just changed the proxy settings and it went well: set_config(use_proxy(url="127.0.0.1",port=0000))

turaymelo avatar Mar 13 '17 17:03 turaymelo