Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
4 years agoTimeout api with Nodejs SDK
Hi there,
I just configure the API sync in my Kuberntes cluster, but eventually I got timeout request in my local endpoint....
Unexpected error Error: timeout of 15000ms exceeded
at creat...
Former Member
4 years agoHey Pierre -
Are you asking whether you can extend the timeout period for the NodeJS SDK? You can provide a timeout
option when configuring the SDK:
const op = OnePasswordConnect({
serverURL: "http://localhost:8080",
token: "my-token",
keepAlive: true,
timeout: 9999999 // a value in milliseconds
});
If you're having issues connecting to your Connect server, can you try using cURL to verify it's reachable:
curl -XGET -H 'Authorization: Bearer token_goes_here' 'http://localhost:8080/v1/vaults'