Commit Graph

31 Commits

Author SHA1 Message Date
gazebo
dddcdce289 - AccessPlatformAPIWithRetry 2019-03-08 18:00:27 +08:00
gazebo
ff06369a23 - add utils.TryUnmarshalUseNumber
- remove utils.HTTPResponse2Json
2019-02-27 14:19:23 +08:00
gazebo
6d6eee7b09 - when retry for jddj api, use different timestamp to distinguish request 2019-02-26 21:11:34 +08:00
gazebo
0fa014a74f ! disable retry when return data is not json (jddj debug) 2019-02-26 18:25:37 +08:00
gazebo
9f42851229 - up 2019-02-26 10:56:26 +08:00
gazebo
5a76efe254 - handle sometimes ebai return 400, can be recovered by retry. 2019-02-26 10:55:24 +08:00
gazebo
3ee0ee47bc - use Infof instead of Errorf when http code is not 200 (to avoid many ebai errors) 2019-02-21 09:52:00 +08:00
gazebo
a7c8658160 - don't output binary debug msg 2019-01-31 14:36:50 +08:00
gazebo
42235df274 - set maxDataSizeDontOutput = 20 * 1024 in platformapi.go 2019-01-30 14:49:26 +08:00
gazebo
df4b6972fb - debug platformapi 2019-01-24 16:40:37 +08:00
gazebo
40c5d3d5de - track all platformapi call 2019-01-24 16:31:57 +08:00
gazebo
15b9c45598 - maxDataSizeDontOutput = 50 * 1024 (from 200 * 1024) 2019-01-24 10:59:17 +08:00
gazebo
227d37bf3a - return result even error in dada api 2019-01-23 10:43:40 +08:00
gazebo
e06ec24013 - weimob wsc api 2019-01-18 09:17:02 +08:00
gazebo
e124038aa2 - refactor platformapi.AccessPlatformAPIWithRetry 2019-01-12 14:04:37 +08:00
gazebo
8df2506381 - debug msg 2019-01-10 18:47:38 +08:00
gazebo
bf35209354 - record access time 2019-01-09 15:08:27 +08:00
gazebo
6a5afbb07f - default config support for limt_access_speed.
* fix bug when request.Body is nil.
2018-10-27 12:29:27 +08:00
gazebo
ecb04fbe72 - access frequence limit
- output detail request when error
2018-10-27 10:10:54 +08:00
gazebo
ad555f34e9 - output response when not 200 2018-10-23 21:10:45 +08:00
gazebo
aa25e75abc - print response when http code is not 200. 2018-10-20 11:47:23 +08:00
gazebo
3072d0f66b - retry sleep duration reduced to 3 seconds. 2018-09-23 18:42:20 +08:00
gazebo
c1186b9dc6 - reset retry count when access successfully. 2018-09-23 11:27:01 +08:00
gazebo
3fecfbd7a4 - ebai api 2018-09-22 23:28:32 +08:00
gazebo
fa6ac348e3 - fk. Request.Close = true for weixin api. 2018-08-16 11:03:06 +08:00
gazebo
47e1b3989d - fix retry bug (request can not be reused). 2018-08-15 22:06:57 +08:00
gazebo
be0241fd39 - log request and response when AccessPlatformAPIWithRetry failed. 2018-08-13 16:01:10 +08:00
gazebo
0924e3719d - try to fix EOF bug when accessing wenxi api. 2018-08-05 16:11:07 +08:00
gazebo
cc043b7009 - refactor, remove unnecessary log. 2018-07-22 16:27:21 +08:00
gazebo
1f22b95ee2 - more error and warn output. 2018-07-01 10:10:50 +08:00
gazebo
7657966da5 - big big refactor. 2018-06-22 22:26:12 +08:00