Server returned 500
huaxiang10036 发布于2019-11 浏览:2563 回复:1
0
收藏
快速回复

偶尔会 异常返回,频率还是挺高的,影响到我们业务了:

null--->[HTTP/1.1 500 Internal Server Error]
Date--->[Mon, 04 Nov 2019 09:29:12 GMT]
Content-Length--->[0]
Content-Type--->[text/plain; charset=utf-8]
Server--->[bfe]
java.io.IOException: Server returned HTTP response code: 500 for URL: https://aip.baidubce.com/rest/2.0/ocr/v1/idcard?access_token=24.a2a2e10d08abf35a96ed90d5cbdb5c61.2592000.1573870657.282335-10075655
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1676)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1674)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1672)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at com.hx.commons.utils.HttpUtil.post(HttpUtil.java:49)

 

Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://aip.baidubce.com/rest/2.0/ocr/v1/idcard?access_token=24.a2a2e10d08abf35a96ed90d5cbdb5c61.2592000.1573870657.282335-10075655
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1627)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(HttpURLConnection.java:2714)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFields(HttpsURLConnectionImpl.java:283)
at com.hx.commons.utils.HttpUtil.post(HttpUtil.java:39)
... 63 more

 

 

正常如下:


accessToken------24.a2a2e10d08abf35a96ed90d5cbdb5c61.2592000.1573870657.282335-10075655
null--->[HTTP/1.1 200 OK]
Appid--->[10075655]
P3p--->[CP=" OTI DSP COR IVA OUR IND COM ", CP=" OTI DSP COR IVA OUR IND COM ", CP=" OTI DSP COR IVA OUR IND COM "]
Vary--->[Accept-Encoding, Accept-Encoding]
Date--->[Mon, 04 Nov 2019 09:29:23 GMT]
Access-Control-Allow-Origin--->[*]
Content-Length--->[426]
Tracecode--->[17636372350199400202110417]
Set-Cookie--->[BAIDUID=6BF5B7228A962528C5A572D7067043C4:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2145916555; path=/; domain=.baidu.com; version=1, BAIDUID=081320320FB4CA514EA44A065E5DCE26:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2145916555; path=/; domain=.baidu.com; version=1, BAIDUID=F5D32774055C93DA71DC2C2D8DD48429:FG=1; expires=Tue, 03-Nov-20 09:29:23 GMT; max-age=31536000; path=/; domain=.baidu.com; version=1]
Content-Type--->[application/json]
Connection--->[keep-alive]
Server--->[Apache]
result:{"log_id": 2668327192091452996, "words_result_num": 3, "image_status": "normal", "words_result": {"失效日期": {"location": {"width": 179, "top": 470, "left": 577, "height": 31}, "words": "20380417"}, "签发机关": {"location": {"width": 192, "top": 395, "left": 378, "height": 30}, "words": "巴彦县公安局"}, "签发日期": {"location": {"width": 181, "top": 470, "left": 373, "height": 33}, "words": "20180417"}}}

收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2greeny730回复于2019-11

您好 您的问题可以提交一下工单,会有专门的技术人员给您看下。

0
TOP
切换版块