Closed dalelane closed 3 years ago
I'll also need to update the endpoints for all existing credentials stored in the prod DB, as otherwise those will stop working when this change happens.
https://github.com/watson-developer-cloud/api-guidelines/pull/16/files looks like there are some useful pointers in how to do it here
update from IBM Cloud
We will soon be retiring the
watsonplatform.net
endpoint and moving towatson.cloud.ibm.com
. We are extending the retirement date to May 26, 2021 to give you more time.To avoid any interruption in service please update your code to use the new
api.{location}.{offering}.watson.cloud.ibm.com
URL for all your Watson instances.For additional details on how to find and update the URL, please checkout our Docs
update bluemixcredentials
set url='https://api.eu-gb.assistant.watson.cloud.ibm.com'
where url='https://gateway-lon.watsonplatform.net/assistant/api';
update bluemixcredentials
set url='https://api.eu-de.assistant.watson.cloud.ibm.com'
where url='https://gateway-fra.watsonplatform.net/assistant/api';
update bluemixcredentials
set url='https://api.jp-tok.assistant.watson.cloud.ibm.com'
where url='https://gateway-tok.watsonplatform.net/assistant/api';
update bluemixcredentials
set url='https://api.kr-seo.assistant.watson.cloud.ibm.com'
where url='https://gateway-seo.watsonplatform.net/assistant/api';
update bluemixcredentials
set url='https://api.au-syd.assistant.watson.cloud.ibm.com'
where url='https://gateway-syd.watsonplatform.net/assistant/api';
update bluemixcredentials
set url='https://api.us-east.assistant.watson.cloud.ibm.com'
where url='https://gateway-wdc.watsonplatform.net/assistant/api';
update bluemixcredentials
set url='https://api.us-south.assistant.watson.cloud.ibm.com'
where url='https://gateway.watsonplatform.net/conversation/api';
update bluemixcredentials
set url='https://api.us-south.assistant.watson.cloud.ibm.com'
where url='https://gateway.watsonplatform.net/assistant/api';
update bluemixcredentialspool
set url='https://api.us-south.assistant.watson.cloud.ibm.com'
where url='https://gateway.watsonplatform.net/assistant/api';
update bluemixcredentials
set url='https://api.us-south.visual-recognition.watson.cloud.ibm.com'
where url='https://gateway.watsonplatform.net/visual-recognition/api';
update bluemixcredentials
set url='https://api.kr-seo.visual-recognition.watson.cloud.ibm.com'
where url='https://gateway-seo.watsonplatform.net/visual-recognition/api';
update bluemixcredentialspool
set url='https://api.us-south.visual-recognition.watson.cloud.ibm.com'
where url='https://gateway.watsonplatform.net/visual-recognition/api';
waiting until select count(url) from bluemixclassifiers where url like 'https://gateway%';
returns 0
before this issue can be closed
cf. https://cloud.ibm.com/docs/watson?topic=watson-endpoint-change
This will need updating at least in: https://github.com/IBM/taxinomitis/blob/9f8f666c93a49598083d65f5441c88f45e0bf1c5/src/lib/training/conversation.ts#L625-L632 and https://github.com/IBM/taxinomitis/blob/9f8f666c93a49598083d65f5441c88f45e0bf1c5/src/lib/training/visualrecognition.ts#L965-L967