Http Client URL fails

asked 2019-07-24 04:38:49 -0600

Nimichail gravatar image

I am trying to use Http Client to make an API call to a url. I need to pass into the URL some parameters so the API provider has given me a template for the call


Where I need to pass some parameters in InfoJson and my access token.

When I put this into a streamsets URL I get the Illegal character error

Pipeline Status: RUNNING_ERROR: java.lang.IllegalStateException: Illegal character "\" at position 10 is not allowed as a start of a name in a path template "infoJson={\"cat\":\"1\",\"id\":[\"6815\",\"6964\"],..."}&access_token=...".

I have used every possible way double quotes,signle queotes, backslash before quote, no backlash before quote but every time I get Illegal character error for ", ' or \

Is there a way to send a call into a URL like that?

edit retag flag offensive close merge delete


You likely need a double backslash in this context (you are escaping a backslash in a string literal). Did you try that?

jeff gravatar imagejeff ( 2019-07-24 10:20:23 -0600 )edit

I tried this and it still fails with the same error

Nimichail gravatar imageNimichail ( 2019-07-25 02:04:27 -0600 )edit