【问题标题】:Json Error "org.json.JSONException: End of input at character 0 of " [duplicate]Json 错误“org.json.JSONException:在字符 0 处输入结束” [重复]
【发布时间】:2011-12-11 19:46:21
【问题描述】:

我得到一些信息 facebook api,我会用 Json 解析。但是当运行程序时,我得到 org.json.JSONException: End of input at character 0 of 错误。当我调试时,我看到“错误请求”来响应。

你有什么想法吗?

【问题讨论】:

  • 似乎您的请求是错误的,因此您没有得到有效的 json 响应。使用 fiddler 看看你的请求是否得到响应?
  • 听起来你什么都没有解析。
  • 嗨杜伊古。如果你解决了这个问题,请告诉我解决方案:) Teşekkürler。

标签: android json facebook-graph-api


【解决方案1】:

您可能会收到空白回复。它不为空,但响应为空。所以你得到了这个错误,而不是 Nullpointer 异常。

检查一些代理问题。网址是否暴露在互联网上?

【讨论】:

  • 在我的 caser url 在浏览器中可以正常工作,但在 android 中却不行,你能告诉我是什么错误
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多