Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Mowgli
Contributor
Contributor

Metaservlets call from Linux command prompt

Hi,
We are working on a requirement where we want to call a TEDI job through metaservlets. Based on the documentation I found on Talend site, following command should have worked.
sudo /storage/talend/tac/apache-tomcat/webapps/org.talend.administrator/WEB-INF/classes/MetaServletCaller.sh --tac-url= --json-params={"actionName":"runTask","authPass":"*********","authUser":"bbanerjee@teladoc.com","taskId":12,"mode":"synchronous","context":"Default"}
However, following error is being returned.
{"error":"A JSONObject text must begin with '{' at character 1","returnCode":2}
Not sure if this is a syntax issue or I am missing something. Will appreciate if someone who has worked on similar requirement advises on this. Thanks.
Labels (3)
1 Reply
Anonymous
Not applicable

Hi,
You have to add simple quote around JSON object :
'{"actionName":"runTask","authPass":"*********","authUser":"bbanerjee@teladoc.com","taskId":12,"mode":"synchronous","context":"Default"}'