Comments (4)
E/x_log:TaskProxy$InternalHandler.handleMessage(L:205): Bad request
code: 400, msg: Bad request, result: null
at org.xutils.http.request.HttpRequest.sendRequest(HttpRequest.java:189)
at org.xutils.http.loader.FileLoader.load(FileLoader.java:212)
at org.xutils.http.loader.FileLoader.load(FileLoader.java:41)
at org.xutils.http.request.UriRequest.loadResult(UriRequest.java:81)
at org.xutils.http.request.HttpRequest.loadResult(HttpRequest.java:222)
at org.xutils.http.HttpTask$RequestWorker.run(HttpTask.java:502)
E/x_log:HttpRequest.sendRequest(L:194): code: 400, msg: Bad request, result: null, url: http://gdown.baidu.com/data/wisegame/3b01550409c1ed1b/QQ_300.apk
W/x_log:HttpRetryHandler.retryRequest(L:53): Bad request
code: 400, msg: Bad request, result: null
at org.xutils.http.request.HttpRequest.sendRequest(HttpRequest.java:189)
at org.xutils.http.loader.FileLoader.load(FileLoader.java:212)
at org.xutils.http.loader.FileLoader.load(FileLoader.java:41)
at org.xutils.http.request.UriRequest.loadResult(UriRequest.java:81)
at org.xutils.http.request.HttpRequest.loadResult(HttpRequest.java:222)
at org.xutils.http.HttpTask$RequestWorker.run(HttpTask.java:502)
11-27 11:06:10.275 20158-28902/dotop.myapplication W/x_log:HttpRetryHandler.retryRequest(L:66): The Exception can not be retried.
from xutils3.
然后再点一下 又可以了 也就是说有时候从暂停到继续要点2下
from xutils3.
code: 400, msg: Bad request, result: null, 可能下载过于频繁, 服务端的的限制, 跟根据业务需要在onError里提示或自动重新请求一次. 升级到3.0.10看看result提示什么.
from xutils3.
xutils3.1.+有没有直接下载图片的方法?之前2.6版本有一个httpUtils.download(imgUrl, saveFileName, new RequestCallBack() {...},求告知
############################
RE:
x.http().get(params, new Callback.xxxCallback{.....})
x.image().loadFile(....)
x.image().loadDrawable(....)
from xutils3.
Related Issues (20)
- jcenter()要GG了,大佬能否迁移一下库?
- 删除数据造成ANR
- 网络请求,泛型的返回数据的问题,跟#531有点像又有点不像
- org.xutils.ex.FileLockedException: 报异常 HOT 1
- 文件未下载完整就返回了SUCCESS状态
- 发现了一个大bug HOT 2
- 使用xutils3进行get请求,拿不到后台接口返回数据
- 希望作者能用kotlin实现一个版本 , xutils4? HOT 2
- 对回调接口封装了一层就出问题了 HOT 1
- Unsupported Media Type
- 文件下载报错:.temp文件问题 HOT 1
- JSON 如何解析数组
- 项目是否可以适配js语言 HOT 1
- xutils3的网络请求模块的内核是okhttp吗 HOT 1
- http下载文件在Android11、12报错
- javax.net.ssl.SSLException: Unable to parse TLS packet header
- SSL handshake aborted: ssl=0x7f8abb0f80: I/O error during system call, Connection reset by peer
- 作者是放弃维护这个项目了吗? HOT 2
- E/x_log:HttpRequest.sendRequest(L:268): errorCode: 415, msg: , result: {"timestamp":"2024-06-20T02:24:34.375+0000","status":415,"error":"Unsupported Media Type","message":"Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported"
- POST 传数组的时候 报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xutils3.