【发布时间】:2012-07-03 07:40:52
【问题描述】:
我正在尝试使用 reddit API 发布帖子,但服务器返回 500 错误。
例如,我尝试使用我的 cookie 集发布到此 URL:
http://www.reddit.com/api/submit?title=testtitle&sr=compsci&uh=<modhash_goes_here>&text=testtext&kind=self
我的 Chrome 开发工具打印以下错误:
POST <my long URL goes here> 500 (Internal Server Error)
我在 StackOverflow 上的某处读到您需要 modhash 和 cookie,所以这就是我正在使用的。我尝试不使用 modhash,并尝试使用 Apigee 上列出的多余的“r=subreddit”参数。都没有帮助。
为什么我会收到 500 错误?
【问题讨论】:
-
500 级错误是服务器错误,这表明在您进行此 API 调用时执行的代码有问题。
标签: javascript reddit