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
I use "sync-request" at node.js.
I need to use a sync request for some reason.
Requests may be interrupted due to network fluctuations. I tried to add a timeout to the sync-request configuration item, but it didn't take effect.
this is code:
let res = syncRequest('GET', url, {
timeout: 5000,
socketTimeout: 5000,
maxRetries: 1,
retryDelay: 10
});
let result = res.getBody("utf8");
Is this what is the reason?
The text was updated successfully, but these errors were encountered:
I use "sync-request" at node.js.
I need to use a sync request for some reason.
Requests may be interrupted due to network fluctuations. I tried to add a timeout to the sync-request configuration item, but it didn't take effect.
this is code:
Is this what is the reason?
The text was updated successfully, but these errors were encountered: