Error messages after executing MetaServlet commands containing the '/' character - 7.1

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Open Studio for Data Quality
Talend Real-Time Big Data Platform
task
Administration and Monitoring > Managing servers
Administration and Monitoring > Monitoring executions
Deployment > Deploying > Executing Jobs
Design and Development > Designing Jobs
Design and Development > Designing Routes
EnrichPlatform
Talend Administration Center
Talend Studio

Error messages after executing MetaServlet commands containing the '/ character

This article applies to all users of MetaServlet.
Symptoms/Description

When executing a MetaServlet command that contains the slash character, you may get some errors because '/' is a special character in JSON.

For example, if you execute the following command:

MetaServletCaller.bat -tac-url=http://localhost:8080/tac56010 -json-params={"actionName":"createVirtualServer","authPass":"admin","authUser":" admin@company.com ","label":"V1t1","description":"create virtual
      server using
        MetaServlet", "timezone":"US/Pacific","clusterGroup":"Cellar1"} 

You may get the error:

"{"error":"Expected a ',' or '}' at character
      146","returnCode":2}" 
Resolution

To solve this issue, escape the special character by replacing the double quotes (") with single quotes (') in your command:

MetaServletCaller.bat
          -tac-url=http://localhost:8080/tac56010 -json-params={"actionName":"createVirtualServer","authPass":"admin","authUser":" admin@company.com ","label":"V1t1","description":"create virtual
        server using
        MetaServlet", "timezone":'US/Pacific',"clusterGroup":"Cellar1"}