Search code examples
ibm-cloudnode-redtone-analyzer

Unsupported API version when using 'Tone analyzer'


Using 2020 version of IBM Cloud

Error Messages from Debug Window

Update on Error Message from Debug Window

It is very confusing that although I created my Tone Analyzer service with my Lite account, and I entered the correct API Key and URL from the credentials into the Tone Analyzer v3 node, I still cannot get my correct output. Why would it say my URL is unsupported when that link is all they gave me?

Also, the URL https://api.us-south.tone-analyzer.watson.cloud.ibm.com/instances/dc514b3e-bf2f-478c-98f8-3734568eb05c returns this line of code:

{"code":401,"error":"Unauthorized","trace":"7285079c-db8b-40b3-9422-0832b5857e52"}

Is this something to really give a look at? I checked this post Can't access IBM Tone Analyzer API? but am quite unsure of where and how to edit this code to make it useful.


Solution That Works: @data_henrik 's answer. Also, if this happen to be your case too, set version_date to 'Dominant Tone', as shown below. Supplement to the answer


Solution

  • See the API documentation for the Tone Analyzer on versioning. The API requires to set a version=yyyy-mm-dd parameter. The latest (most recent) is version=2017-09-21.