• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

curl :: curl_fetch_memoryurl,handle = handle的错误没办法连接到R的服务器oauth2.0_token

用户头像
it1352
帮助1

问题说明

> github_token <- oauth2.0_token(oauth_endpoints("github"), myapp)

Waiting for authentication in browser...
      Press Esc/Ctrl   C to abort
      Authentication complete.
Error in curl::curl_fetch_memory(url, handle = handle) : 
      Couldn't connect to server

我正在尝试从GitAPI获取数据。我需要使用此数据来查找创建回购的时间。我尝试安装 httpuv,但错误是相同的。

I am trying to get the data from GitAPI. I need to Use this data to find the time that the a repo was created. I have tried installing "httpuv" but the error is same.

PS。我在代理服务器后面。

PS. I am behind a proxy server.

正确答案

#1
library(httr)    
set_config(use_proxy(url="10.3.100.207",port=8080))

这很好。谢谢

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhchaegh
系列文章
更多 icon
同类精品
更多 icon
继续加载