buaazp / zimg

A lightweight and high performance image storage and processing system.
http://zimg.buaa.us
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

failed to respond #173

Open happylwg opened 7 years ago

happylwg commented 7 years ago

com.mashape.unirest.http.exceptions.UnirestException: org.apache.http.NoHttpResponseException: imagestest.****.com:4869 failed to respond at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:143) at com.mashape.unirest.request.BaseRequest.asString(BaseRequest.java:56) at com.fcar.base.zimg.ZIMGClient.upload(ZIMGClient.java:114) at com.fcar.base.zimg.ZIMGController.upload(ZIMGController.java:34) at sun.reflect.GeneratedMethodAccessor615.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606)

844704781 commented 5 years ago

我多线程爬虫的时候也遇到了同样的问题,请问楼主是怎么解决的

844704781 commented 5 years ago

这是我的解决办法:

import jodd.http.HttpRequest; import jodd.http.HttpResponse; import lombok.Data;

/**