【发布时间】:2014-01-11 12:11:40
【问题描述】:
我正在使用 python-instagram 库来访问 instagram api。但是当我运行我的应用程序(flask rest api 应用程序)时,我使用 InstagramAPI 和 get_authorize_login_url 方法的身份验证方法引发 500 错误:
raise OAuth2AuthExchangeError("The server returned a non-200 response for URL %s %s %s" % (url, response['status'], content))
OAuth2AuthExchangeError: The server returned a non-200 response for URL https://api.instagram.com/oauth/authorize?scope=basic&redirect_uri=http%3A%2F%2Fsocialservice.test.5-soft.com%3A8515%2Finstagram%2Fauth&response_type=code&client_id=c5095d88cee14bac91a9341e6e82ff8f 500 Sorry, an error occurred while processing this request.
在我的本地机器上它可以正常工作,但在具有不同 IP 的生产服务器中我遇到了这个问题。 如果有人可以帮助我解决这个问题,我将非常感激
提前致谢, 罗恩
【问题讨论】: