意外的响应代码503(Android Studio)

时间:2019-11-13 14:08:41

标签: php android error-handling server android-volley

我有一个android应用程序,我已经在php中创建了API,并且我已经将所有API上传到了hostinger.com 例如,我的应用程序在做什么,我必须登录到我的Android代码的应用程序是这样的:

String register_url="http://iot2k19.hostingerapp.com/do_login.php"; 

这是做什么的?它让我的应用程序使用do_login.php,并且hosterer的文件管理器中存在do_login.php。到最后一天一切都很好。现在我的应用程序无法连接到托管服务商,我已经联系托管服务商支持中心,他们说我要购买一个新域名。

enter image description here

直到最后一天,我还没有收到这个Your domain is not pointing to our name servers. 现在我的android studio日志说:

11-13 18:51:16.635 29958-30309/test.gul.newelectro1 E/Volley: [3245] BasicNetwork.performRequest: Unexpected response code 503 for http://iot2k19.hostingerapp.com/do_login.php

这一切都工作正常,我没有做任何更改,这是托管服务商的错还是我做错了,因为托管服务商支持中心对我说,他们正面临有关免费子域的一些问题,他们正在努力解决这个问题。但这已经是一天了,我正在得到这个东西。 如果我们看向应用程序,它就是说:

enter image description here

这些是我的API(php文件),我的应用无法访问这些文件: enter image description here

1 个答案:

答案 0 :(得分:1)

您的代码很好,您收到的错误503是服务器告诉您当前服务不可用,免费的Hostinger服务器有时会关闭,因此不应持续超过一周,因此耐心,它最终会归还,或者,如果您需要一直可用,则可以购买并购买域名。我刚才尝试了您的链接,看起来不错