You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description:
Getting the below mentioned error while trying to call the getProfiles method:
error { Error: read ECONNRESET
at RequestWrapper.formatError (/home/ubuntu/NLP/ibm_acd/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:223:21)
at /home/ubuntu/NLP/ibm_acd/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:211:25
at process._tickCallback (internal/process/next_tick.js:68:7)
message: 'read ECONNRESET',
statusText: 'ECONNRESET',
body:
'Response not received - no connection was made to the service.' }
This is the code snippet I am using:
const AnnotatorForClinicalDataAcdV1 = require('ibm-whcs-sdk/annotator-for-clinical-data/v1');
const core = require('ibm-cloud-sdk-core');
const { IamAuthenticator } = core;
Bug description:
Getting the below mentioned error while trying to call the getProfiles method:
error { Error: read ECONNRESET
at RequestWrapper.formatError (/home/ubuntu/NLP/ibm_acd/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:223:21)
at /home/ubuntu/NLP/ibm_acd/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:211:25
at process._tickCallback (internal/process/next_tick.js:68:7)
message: 'read ECONNRESET',
statusText: 'ECONNRESET',
body:
'Response not received - no connection was made to the service.' }
This is the code snippet I am using:
const AnnotatorForClinicalDataAcdV1 = require('ibm-whcs-sdk/annotator-for-clinical-data/v1');
const core = require('ibm-cloud-sdk-core');
const { IamAuthenticator } = core;
const ACD = new AnnotatorForClinicalDataAcdV1({
version: '{actual version}',
headers: {
"Content-Type": "text/plain",
"accept": "application/json"
},
disableSslVerification: true,
authenticator: new IamAuthenticator({
apikey: '{ibm provided api key}'
}),
serviceUrl: '{ibm provided service url}'
});
const params = {};
ACD.getProfiles(params)
.then(response => {
console.log(JSON.stringify(response.result, null, 2));
})
.catch(err => {
console.log('error', err);
});
Expectation: A valid response should have been obtained
Must gather (please complete the following information):
Additional context
Add any other context about the problem here.
Were you able to avoid the problem by changing your application code slightly?
The text was updated successfully, but these errors were encountered: