Json 错误 "org.json.JSONException: End of input at character 0 of " [英] Json Error "org.json.JSONException: End of input at character 0 of "

查看:35
本文介绍了Json 错误 "org.json.JSONException: End of input at character 0 of "的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了一些 facebook api 的信息,我将使用 Json 进行解析.但是当运行程序时,我收到 org.json.JSONException: End of input at character 0 of 错误.当我调试时,我看到错误请求"响应.

I get some information facebook api and i will parse with Json.But when run the program i am getting org.json.JSONException: End of input at character 0 of error. When i debug i see "Bad Request" to response.

你有什么想法吗?

推荐答案

您可能会得到空白响应.它不为空,但响应为空.所以你得到的是这个错误,而不是 Nullpointer 异常.

You are probably getting a blank response. Its not null but the response is empty. So you are getting this error and not a Nullpointer exception.

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

check for some proxy issues. Is the url exposed on the internet?

这篇关于Json 错误 "org.json.JSONException: End of input at character 0 of "的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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