Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set timeout? ApolloError: The operation timed out #320

Open
FreePhoenix888 opened this issue Mar 6, 2024 · 2 comments
Open

How to set timeout? ApolloError: The operation timed out #320

FreePhoenix888 opened this issue Mar 6, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@FreePhoenix888
Copy link
Member

I have approximately 23500 serial operations and want to execute them:

  @deep-foundation/russian-laws {
  @deep-foundation/russian-laws   operations: [
  @deep-foundation/russian-laws     { table: 'links', type: 'insert', objects: [Object] },
  @deep-foundation/russian-laws     { table: 'strings', type: 'insert', objects: [Object] },
  @deep-foundation/russian-laws     { table: 'links', type: 'insert', objects: [Object] },
  @deep-foundation/russian-laws     { table: 'links', type: 'insert', objects: [Object] },
  @deep-foundation/russian-laws     { table: 'numbers', type: 'insert', objects: [Object] },
  @deep-foundation/russian-laws     { table: 'links', type: 'insert', objects: [Object] },
  @deep-foundation/russian-laws     ... 23288 more items
  @deep-foundation/russian-laws   ]
  @deep-foundation/russian-laws } +0ms
528 |             catch (e) {
529 |                 const sqlError = (_d = (_c = (_b = (_a = e === null || e === void 0 ? void 0 : e.graphQLErrors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.extensions) === null || _c === void 0 ? void 0 : _c.internal) === null || _d === void 0 ? void 0 : _d.error;
530 |                 if (sqlError === null || sqlError === void 0 ? void 0 : sqlError.message)
531 |                     e.message = sqlError.message;
532 |                 if (!silent)
533 |                     throw new Error(`DeepClient Serial Error: ${e.message}`, { cause: e });
                                ^
error: DeepClient Serial Error: The operation timed out
      at /workspace/dev/russian-laws/node_modules/@deep-foundation/deeplinks/imports/client.js:533:27
      at rejected (/workspace/dev/russian-laws/node_modules/@deep-foundation/deeplinks/imports/client.js:5:47)

21 |     if (err.networkError)
22 |         errors.push(err.networkError);
23 |     return (errors
24 |         .map(function (err) {
25 |         return (utilities.isNonNullObject(err) && err.message) || "Error message not found.";
26 |     })
                                                                                                                               ^
ApolloError: The operation timed out
      at new ApolloError (/workspace/dev/russian-laws/node_modules/@apollo/client/errors/errors.cjs:26:123)
      at error (/workspace/dev/russian-laws/node_modules/@apollo/client/core/core.cjs:1474:102)
      at notifySubscription (/workspace/dev/russian-laws/node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (/workspace/dev/russian-laws/node_modules/zen-observable/lib/Observable.js:179:3)
      at error (/workspace/dev/russian-laws/node_modules/zen-observable/lib/Observable.js:240:7)
      at /workspace/dev/russian-laws/node_modules/@apollo/client/utilities/utilities.cjs:1274:30
      at notifySubscription (/workspace/dev/russian-laws/node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (/workspace/dev/russian-laws/node_modules/zen-observable/lib/Observable.js:179:3)
      at error (/workspace/dev/russian-laws/node_modules/zen-observable/lib/Observable.js:240:7)
      at /workspace/dev/russian-laws/node_modules/@apollo/client/utilities/utilities.cjs:1253:61
✗ import and export [837953.41ms]

 0 pass
 1 fail
Ran 1 tests across 1 files. [840.11s]

But I get ApolloError: The operation timed out. Is there a way to change timeout time? If not we should add this feature

@FreePhoenix888 FreePhoenix888 added enhancement New feature or request question Further information is requested labels Mar 6, 2024
@FreePhoenix888
Copy link
Member Author

@Konard Konard self-assigned this Mar 6, 2024
@Konard Konard moved this to Todo in Deep Architecture Mar 6, 2024
@FreePhoenix888
Copy link
Member Author

Workaround is to chunk your operations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
Status: Todo
Development

No branches or pull requests

2 participants