Rspotify
Rspotify copied to clipboard
Error in curl::curl_fetch_memory(url, handle = handle)
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 ,
This is still a problem
Can you share a piece of code?
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.
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
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))