费勒(错误)6-无法加载所请求的项目 [英] Fehler (error) 6 - the requested item could not be loaded

查看:74
本文介绍了费勒(错误)6-无法加载所请求的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在开发需要将自身连接到REST API的android应用程序.只要连接可行(移动数据/WiFi),对我的应用程序来说,访问API至关重要.

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).

但是在测试我的应用程序时,发生了一件非常奇怪的事情.应用程序几乎一直都能按预期运行,但是在VipMobile运营商(奥地利电信集团)上时,我无法连接至API.

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  

该消息中也包含许多不可打印的字符.当我发现这是操作员的错误时,我尝试将链接复制到我的API并得到此消息.

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.

推荐答案

当用户使用3g连接时会发生这种情况.一些移动运营商会拦截客户端的请求,如果Content-Type不好或没有定义,他们会显示这样的页面.塞尔维亚的vipmobile运营商也会发生这种情况.

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.

尝试将例如Content-Type:text/plain; charset = utf-8放在标题中

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

这篇关于费勒(错误)6-无法加载所请求的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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