A lot of IBM Watson Assistant Plugin customers reported on the forum as well as by email about the “500 Internal Server Error”.
This error is caused by recent change to Watson Assistant v2 API. This change is not described in the official documentation:
1. https://cloud.ibm.com/apidocs/assistant-v2#create-a-session, screenshot;
2. https://cloud.ibm.com/docs/services/assistant?topic=assistant-api-client-get-context, screenshot.
Before the API was changed, “context” object structure (in the response from Watson Assistant) was:
{"context": {"skills": {"main skill": {"user_defined": {}}}}}
.
Then there was added a new undocumented “system” object and now “context” object structure is:
{"context": {"skills": {"main skill": {"user_defined": {}, "system": {}}}}}
,
screenshot.
Due to the difference between documented structure and the actual one Plugin fails with “500 Internal Server Error”.
We are working on fixing it.