qian
V2EX  ›  问与答

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

  •  
  •   qian · Mar 22, 2014 · 4287 views
    This topic created in 4442 days ago, the information mentioned may be changed or developed.
    发布页没人维护啊。。。不知道怎么办了。。。

    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 replies    1970-01-01 08:00:00 +08:00
    qian
        1
    qian  
    OP
       Mar 22, 2014
    现在已经解决了。发布页说明里写取消授权回调页不用填。其实还是要填的。。
    die4live
        2
    die4live  
       Mar 23, 2014
    居然还能看到R的问题 可以去统计之都问啊 这儿也没这节点
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5201 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:17 · PVG 09:17 · LAX 18:17 · JFK 21:17
    ♥ Do have faith in what you're doing.