Instagram红宝石宝石-无法访问回调URL [英] Instagram ruby gem - Unable to reach callback URL

查看:51
本文介绍了Instagram红宝石宝石-无法访问回调URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始尝试instagram-ruby-gem几次 天-无论我做什么,当尝试创建实时时 订阅,我会得到 https://api.instagram.com/v1/subscriptions.json : 400:无法访问回调网址-我总是可以通过以下方式访问该网址: 网络浏览器,我尝试使用localtunnel和heroku公开网址,但没有 成功. 还有其他问题会产生相同的错误消息吗?任何 其他想法?

Been experimenting with the instagram-ruby-gem on and off for a few days - no matter what I do, when a try to create a realtime subscription, I get https://api.instagram.com/v1/subscriptions.json: 400: Unable to reach callback URL - I can always reach the URL with a web browser and I've tried exposing the url with both localtunnel and heroku with no success. Are there other issues that will produce this same error message? Any other ideas?

def sub
  client = Instagram.client
  client.create_subscription(
    :object => 'tag',
    :callback_url => root_url,
    :aspect => "media",
    :object_id => "pizza"
  )
end

推荐答案

我遇到了同样的问题.

似乎instagram没有到达返回空白页的URL.

Seems that instagram doesn't reach the URLs that returns a blank page.

在我的情况下,接收调用的脚本出现语法错误,并且使用error_reporting=off返回一个空白页.修复脚本后,instagram开始到达URL.

In my case, the script that receives the call had a syntax error and, with error_reporting=off, gives back an empty page. Once I've fixed the script, instagram starts to reach the URL.

这篇关于Instagram红宝石宝石-无法访问回调URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆