简体   繁体   English

意外的响应代码303 Volley错误

[英]Unexpected response code 303 Volley error

I'm using this Volley version implementation 'com.mcxiaoke.volley:library-aar:1.0.0' in my project and it works fine, but today I found it didn't got the response from the server with this error code: 我在我的项目中使用此Volley版本implementation 'com.mcxiaoke.volley:library-aar:1.0.0' ,它可以正常工作,但是今天我发现它没有收到来自服务器的以下错误代码响应:

E/Volley: [4722] BasicNetwork.performRequest: Unexpected response code 303 for http://....other_link_part E / Volley:[4722] BasicNetwork.performRequest: http://....other_link_part的意外响应代码303

When I click on the link, I find it working fine and the json appears successfully to me on the browser. 当我单击链接时,我发现它工作正常,并且json在我的浏览器中成功显示。

I got problem like that when I handled switching from https to http manually when my link was https has problem with certificate 我遇到这样的问题,当我的链接是https时,当我处理从https手动切换到http时,证书有问题

com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not foundو so it appears disconnected in check connection with the server and the link schema changes to http which gives me 303 error code when I find https certificate error and solve like this link : Android volley error: "Trust anchor for certification path not found", only in real device, not emulator everything works fine. com.android.volley.NoConnectionError:javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。因此,在与服务器的检查连接中它似乎已断开连接,并且链接架构更改为http当我找到https证书错误并按以下链接进行解决时,我出现303错误代码: Android凌空错误:“未找到证书路径的信任锚”,仅在真实设备中,而不在模拟器中,一切正常。

so my suggestion - be ensure your are connected with the right link schema of the server if it (http or https) - check volley error message - if it's a problem with the certificate try to solve it first 因此,我的建议-确保服务器(http或https)与服务器的正确链接架构连接-检查截击错误消息-如果证书有问题,请尝试首先解决它

hope that can solve your problem 希望可以解决您的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM