Getting error in language translation in IBMs cognitive actions

Hello,
I m getting the following error when i run the code.i have one more question do we have to write the username and password of the ibms cloud account or the api key.I have tried running this code using curl and its working properly on curl.

robin code:Cognitive.IBM.LanguageTranslator.TranslateWithSourceAndTarget Username:" {username}" Password:"{password}" Source:‘en’ Target:‘hi’ Text:“How are u” Timeout:30 Response=> JSONResponse StatusCode=> StatusCode

error:Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0.

1 Like