We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0509335 commit b40805aCopy full SHA for b40805a
lib/base_service.ts
@@ -112,7 +112,7 @@ export class BaseService {
112
const _options = this.initCredentials(options);
113
// If url is not specified, visual recognition requires gateway-a for CF instances
114
// https://github.ibm.com/Watson/developer-experience/issues/4589
115
- if (_options && this.name === 'watson_vision_combined' && !_options.url && _options.api_key){
+ if (_options && this.name === 'watson_vision_combined' && !_options.url && _options.api_key && !_options.iam_apikey){
116
_options.url = 'https://gateway-a.watsonplatform.net/visual-recognition/api';
117
}
118
if (options.url) {
0 commit comments