Fehler (error) 6 - the requested item could not be loaded

末鹿安然 提交于 2020-01-06 01:27:08

问题


Currently I'm developing android application that needs to connect itself to REST API. It is crucial for my app to access API whenever connection is possible (mobile data/wifi).

But when testing my app something extremely weird happened. Application works as expected almost all the time, but when on VipMobile operator (Austria telekom group) I cannot connect to API.

At first I didn't get it, error was too unreadable. It says

j u fehler6 the requested item could not be loaded & wrong mime type  

There are a lot of unprintable chars in that message too. When i figured out that it is operator fault i tried to copy link to my API and got this.

What could that possibly be? Can anyone point me in any direction, I cannot publish application as long as there are those ridickulous errors.


回答1:


This happens when the user is on 3g connection. Some mobile operators intercept clients request and if the Content-Type is not good, or not defined they display page like this. This happens also to vipmobile operator in Serbia.

Try to add right content-type to response headers on your server side.

Try to put for example Content-Type:text/plain;charset=utf-8 to headers



来源:https://stackoverflow.com/questions/25220947/fehler-error-6-the-requested-item-could-not-be-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!