V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
qian
V2EX  ›  问与答

rweibo 的 OAuth 授权失败... 怎么 debug?

  •  
  •   qian · 2014-03-22 22:18:11 +08:00 · 3757 次点击
    这是一个创建于 3714 天前的主题,其中的信息可能已经有所发展或是发生改变。
    发布页没人维护啊。。。不知道怎么办了。。。

    OS X 10.9.2, R 3.0.3, RStudio 0.98.501, Rweibo 0.2-7, Safari 7.0.2, Mac 上装了 Little Snitch, 不过没跳窗口,应该没有被拦截

    > require(Rweibo)
    Loading required package: Rweibo
    Loading required package: tools
    Loading required package: RCurl
    Loading required package: bitops
    Loading required package: rjson
    Loading required package: XML

    Attaching package: ‘XML’

    The following object is masked from ‘package:tools’:

    toHTML

    Loading required package: digest
    # Rweibo Version: 0.2-7
    > roauth <- createOAuth(app_name = "xxxxxxx", access_name = "rweibo")
    # The port of help server was set to 80
    starting httpd help server ...
    Please input the codes here
    CODE:

    Safari 上地址栏是 https://api.weibo.com/oauth2/authorize?client_id=xxxxxxxxx&response_type=code&redirect_uri=http://127.0.0.1/library/Rweibo/doc/callback.html 窗口标题:第三方授权错误 网页内容:
    访问出错了!
    你所访问的站点在新浪微博的认证失败,请你联系{测试微博号}或者稍后再试。
    (error:redirect_uri_mismatch)

    网页上没有出现code。然后在 RStudio 按了几个回车。

    starting httpd help server ... done
    Saved!
    Warning message:
    oauth test failed, please check the connection or your application.
    2 条回复    1970-01-01 08:00:00 +08:00
    qian
        1
    qian  
    OP
       2014-03-22 22:47:53 +08:00
    现在已经解决了。发布页说明里写取消授权回调页不用填。其实还是要填的。。
    die4live
        2
    die4live  
       2014-03-23 00:42:51 +08:00
    居然还能看到R的问题 可以去统计之都问啊 这儿也没这节点
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2985 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 373ms · UTC 11:15 · PVG 19:15 · LAX 04:15 · JFK 07:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.