Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ns3115neha opened this issue Dec 20, 2016 · 5 comments
Open

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

ns3115neha opened this issue Dec 20, 2016 · 5 comments

Comments

@ns3115neha
Copy link

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 ,

@RMHogervorst
Copy link

This is still a problem

@tiagomendesdantas
Copy link
Owner

Can you share a piece of code?

@RMHogervorst
Copy link

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
Copy link

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

@turaymelo
Copy link

turaymelo commented Mar 13, 2017

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants