Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I am trying to upload a file using curl command in tsystem. It works fine. But when I deploy the same to karaf, The file upload is not working.
Below is the command that works in Talend:
"cmd /c start powershell -noninteractive C://Curl_windows//src//curl.exe -H 'X-API-TOKEN:qEaZWY5zekZd' -F 'surveyId=SV_8dpqG2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' 'https://au1.qualtrics.com//API//v3//responseimports'"
Can someone please suggest any alternative?
Works in Powershell but not in talend:
C://Curl_windows//src//curl.exe -H 'X-API-TOKEN:qEa9E1nq91rXFZWY5zekZd' -F 'surveyId=SV_8dpI0oD2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' https://au1.qualtrics.com/API/v3/responseimports
Hi TalendNewBee,
Could you please post what error message you are getting when running job in karaf.
Also let me know you are using Linux or Windows server for Talend.
If you are using Linux you have to change curl.exe path in your job,for that you can create context parameter in your Talend job.
Hi, I am not getting any error. But the file is not being uploaded. I am using Windows server.
Below command Works in Powershell but not in talend:
C://Users//curl-7.58.0//src//curl.exe -H 'X-API-TOKEN:qEa9E1nq91rX0ZLQuFZWY5zekZd' -F 'surveyId=SV_8dpqGhS2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' https://au1.qualtrics.com/API/v3/responseimports
Error:
{"meta":{"httpStatus":"400 - Bad Request","error":{"errorMessage":"Expected authorization in headers, but none provided.","errorCode":"ATP_2"},"requestId":null}}
This command works in talend but doesnt do as expected when I deploy:
"cmd /c start powershell C://Curl_windows//src//curl.exe -H 'X-API-TOKEN:qEa9E1nq91rX0ZLQuFZWY5zekZd' -F 'surveyId=SV_8dpqGh0oD2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' 'https://au1.qualtrics.com//API//v3//responseimports'"
Please help me out