Error uploading large data from URL
The following transfer import request on qa:stable used by the perf test "smoke-test-import-data":
curl -X 'POST' \
'https://transfer-qa.siscc.org/1.2/import/sdmxFile' \
-H 'accept: application/json' \
-H 'Authorization: Bearer XXXXX' \
-H 'Content-Type: multipart/form-data' \
-F 'filepath=https://nsi-qa-stable.siscc.org/rest/data/PT,DF_CPI,1.0.0/......./' \
-F 'targetVersion=' \
-F 'lang=' \
-F 'restorationOptionRequired=' \
-F 'validationType=' \
-F 'PITReleaseDate=' \
-F 'file=' \
-F 'dataspace=qa:stable'
results in this HTTP 502 "Bad Gateway" error:
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>
Note also that this query works correctly:
curl -x wsg-dmz-proxy.oecd.org:443 -X GET "http://nsi-qa-stable.siscc.org/rest/data/PT%2CDF_CPI%2C1.0.0/......./" -H "accept-encoding: identity" > soaktest.xml
Edited by Jens Dossé