It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
5 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
5 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'