I'm trying to add a custom stopwords on a colletion of Watson Discovery, but I only get the error 500 "Error when creating 'stopwords'.". Same on both web and api (curl).
I've tried:
- file with 99 lines,
- empty file,
- and an IBM file (https://watson-developer-cloud.github.io/doc-tutorial-downloads/discovery/custom_stopwords_en.txt)
I've checked (https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts&locale=en):
- Advanced plans - ok
- The size limit is one million characters - ok
- Only one custom stopword list per collection - ok
- All stopwords should be lowercase. - ok
- Delete and create a new collection - ok
Also, I ran curl with invalid collection and environment to check the api validation (unnecessary I know), and it returned 404 "Could not find listed collection" as expected (ok, it's working).
Am I missing something? What more can I check?
curl command:
curl -X POST -u "apikey":"..." --data-binary @custom_stopwords_pt.txt "https://gateway.watsonplatform.net/discovery/api/v1/environments/.../collections/.../word_lists/stopwords?version=2019-04-30"
Thank's