简体   繁体   English

什么会导致服务器URLRequest损坏

[英]What would cause server to URLRequest corruption

I have an app on iphone and android that both fail periodically when calling the server. 我在iphone和android上都有一个应用程序,在调用服务器时都会定期失败。 When I say that they fail I mean that I get no errors codes, 200 Connection code meaning that it was successful, but a corrupted string/data/(jsonObject/Array). 当我说他们失败时,我的意思是我没有收到任何错误代码,200 Connection代码表示成功,但是损坏的字符串/数据/(jsonObject / Array)。 I list all of those data types because depending on the app they use some or all of them. 我列出了所有这些数据类型,因为它们取决于应用程序使用部分还是全部数据类型。 The information when printed out in sting form does have the return JSON coming from the server, but it is corrupted with extra code or text that will not allow JSONParsers to work properly. 以字符串形式打印出的信息确实具有来自服务器的返回JSON,但是由于多余的代码或文本而损坏,这些信息或文本将不允许JSONParsers正常工作。 Like I said before it doesn't fail all the time and it only fails in what is in the returned string/json/data. 就像我之前说过的那样,它不会一直失败,只会在返回的string / json / data中失败。 I have been told before that I am connecting, receiving, and handling the information correctly and that I should look to the server. 有人告诉我,我正确地连接,接收和处理信息,因此我应该看服务器。 We have changed servers in the middle of this and it works faster but still has a similar fail rate. 在此过程中,我们已更改了服务器,它的运行速度更快,但故障率仍然相似。 Also, the server does not fail or have issues with browsers. 另外,服务器不会出现故障或浏览器出现问题。 So, in all web browsers it throws no errors, doesn't corrupt the site and or the information that is displayed. 因此,在所有Web浏览器中,它不会引发任何错误,不会损坏站点和/或显示的信息。 So, if I get on my computer and go to the website I will see the correct information every time when I load the page. 因此,如果我上计算机并访问网站,则每次加载页面时都会看到正确的信息。 Any ideas would be greatly appreciated. 任何想法将不胜感激。

The answer that I found out for android was that it was the old server, but the new serve still had issues with the IOS app but I figured out that if you alloc the NSString with the NSData then the information will not have any possiblities of gaining extra data or information. 我为android找到的答案是它是旧服务器,但新服务仍与IOS应用程序有关,但我发现如果您将NSString与NSData一起分配,则该信息将不会有任何获得的可能性。额外的数据或信息。 So alloc works. 所以分配工作。

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

相关问题 什么会导致AlarmManager停止 - What would cause AlarmManager to stop 是什么会导致SQLite数据库被擦除? - What would cause an SQLite database to be wiped? 什么会导致此XML用尽内存 - What would cause this XML to use up memory 什么会导致Android ImageView部分解码? - What would cause an Android ImageView to partially decode? 使用Google Drive Android API时,远程数据损坏的原因可能是什么? - What could be the cause for remote data corruption when using the google drive android API? Android:在什么情况下出现对话框会导致调用onPause()? - Android: Under what circumstances would a Dialog appearing cause onPause() to be called? 什么会导致<p>元素在Android浏览器中不跨越全宽 - What would cause a <p> element to not span full width in the Android browser 是什么会导致HTML表单元格打开Android手机垫? - What would cause HTML table cells to open Android phone pad? 连接到服务器时出现异常的原因是什么 - what the cause of exception when connecting to the server 什么会导致文本不在 oracle 移动应用程序框架中的 amx 命令按钮中显示? - What would cause text not to display within an amx command button in oracle's mobile application framework?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM