Skip to content

Commit b40805a

Browse files
Anwesha NaskarAnwesha Naskar
authored andcommitted
fix(base service): fixes bug with rc visrec urls in vcapservices and env files
1 parent 0509335 commit b40805a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/base_service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class BaseService {
112112
const _options = this.initCredentials(options);
113113
// If url is not specified, visual recognition requires gateway-a for CF instances
114114
// https://github.ibm.com/Watson/developer-experience/issues/4589
115-
if (_options && this.name === 'watson_vision_combined' && !_options.url && _options.api_key){
115+
if (_options && this.name === 'watson_vision_combined' && !_options.url && _options.api_key && !_options.iam_apikey){
116116
_options.url = 'https://gateway-a.watsonplatform.net/visual-recognition/api';
117117
}
118118
if (options.url) {

0 commit comments

Comments
 (0)