-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Every call to the itra Api that takes longer than 30 seconds gets the following server timeout:
{
"httpStatusCode" : 408,
"httpMessage" : "Request Timeout",
"executionContextId" : "005gv^uk1qC1FgyN06V4EF0005Nn006cX5,0:1:1",
"errorCode" : "urn:oracle:cloud:errorcode:tas:request-timeout-error",
"errorMessage" : "Timeout during sendMeteringRequest."
}
This renders for example the oci_json_billing.sh script broken, retrieving 408 errors on usage calls.
Example call (working, response under 30 sec):
curl --max-time 60 --connect-timeout 60
-H "Authorization:Bearer TOKEN"
-H "X-ID-TENANT-NAME:idcs-c........b"
"https://itra.oraclecloud.com/metering/api/v1/usagecost/cacct-0*****d/tagged?startTime=2018-03-12T21%3A00%3A00.000Z&endTime=2018-03-12T22%3A00%3A00.000Z&usageType=HOURLY&timeZone=UTC&rollupLevel=RESOURCE"
Example call (not working, 408 error in 30 sec):
curl --max-time 60 --connect-timeout 60
-H "Authorization:Bearer TOKEN"
-H "X-ID-TENANT-NAME:idcs-c........b"
"https://itra.oraclecloud.com/metering/api/v1/usagecost/cacct-0*****d/tagged?startTime=2018-03-12T21%3A00%3A00.000Z&endTime=2018-03-12T22%3A00%3A00.000Z&usageType=HOURLY&timeZone=UTC&rollupLevel=RESOURCE&tags=ORCL%3AOCIService%3DCompute"