(Cognitive Actions) Getting error in language translation in IBMs cognitive actions

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

Hello @hemant.mishra and welcome to our community!

IBM has recently updated their cognitive services API so the current action is outdated.
We will be releasing an update as soon as possible.

Best regards,

Admin note: Always post in the appropriate category.