我按照以下说明操作:收到错误:http://apiaxle.com/docs/try-it-now/
{"meta":{"version":1,"status_code":504},
"results":{"error":{"type":"EndpointTimeoutError",
"message":"API endpoint timed out."}}}
我正在谷歌搜索但尚未找到如何设置更大的超时。
答案 0 :(得分:2)
查看http://apiaxle.com/api.html处的文档,我拍了一下,然后想出了以下内容:
axle> api "apiname" create endPoint="server.org:port" endPointTimeout=30
回应是:
{ protocol: 'http',
tokenSkewProtectionCount: 3,
apiFormat: 'json',
endPointTimeout: 30,
disabled: false,
strictSSL: true,
sendThroughApiKey: false,
sendThroughApiSig: false,
hasCapturePaths: false,
allowKeylessUse: false,
keylessQps: 2,
keylessQpd: 172800,
endPoint: 'server.org:port',
createdAt: 1400333254388 }
axle> api apiname linkkey "1234"
回应是:
{ qpd: 172800, qps: 2, disabled: false, createdAt: 1400331617778 }
答案 1 :(得分:1)
修改现有的api:
api "apiname" update endPointTimeout=10