feat(ts-sdk): add serverless adapter for @tursodatabase/serverless #981
Annotations
15 errors and 7 warnings
|
Test (ubuntu-latest, 20)
Process completed with exit code 1.
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/tests/serverless.test.ts#L21
TypeError: Cannot read properties of undefined (reading 'close')
❯ tests/serverless.test.ts:21:17
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/src/integrations/serverless/adapter.ts#L161
TypeError: fetch failed
❯ executePipeline node_modules/@tursodatabase/serverless/dist/protocol.js:157:22
❯ Session.sequence node_modules/@tursodatabase/serverless/dist/session.js:260:26
❯ Connection.exec node_modules/@tursodatabase/serverless/dist/connection.js:144:20
❯ Object.exec src/integrations/serverless/adapter.ts:161:7
❯ KvStore.initialize src/kvstore.ts:21:5
❯ Function.fromDatabase src/kvstore.ts:15:5
❯ Function.openWith src/index_node.ts:63:33
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:8080\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:8080',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:8080',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
constructor: 'Function<AggregateError>',
name: 'Caused by: Caused by: AggregateError',
message: '',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:8080\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:8080', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:8080', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
|
Test (ubuntu-latest, 22)
The strategy configuration was canceled because "test.ubuntu-latest_20" failed
|
|
Test (ubuntu-latest, 22)
Process completed with exit code 1.
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/tests/serverless.test.ts#L21
TypeError: Cannot read properties of undefined (reading 'close')
❯ tests/serverless.test.ts:21:17
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/src/integrations/serverless/adapter.ts#L161
TypeError: fetch failed
❯ executePipeline node_modules/@tursodatabase/serverless/dist/protocol.js:157:22
❯ Session.sequence node_modules/@tursodatabase/serverless/dist/session.js:260:26
❯ Connection.exec node_modules/@tursodatabase/serverless/dist/connection.js:144:20
❯ Object.exec src/integrations/serverless/adapter.ts:161:7
❯ KvStore.initialize src/kvstore.ts:21:5
❯ Function.fromDatabase src/kvstore.ts:15:5
❯ Function.openWith src/index_node.ts:63:33
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1134:18)\n' +
' at afterConnectMultiple (node:net:1715:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:8080\n' +
' at createConnectionError (node:net:1678:14)\n' +
' at afterConnectMultiple (node:net:1708:16)',
message: 'connect ECONNREFUSED ::1:8080',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n' +
' at createConnectionError (node:net:1678:14)\n' +
' at afterConnectMultiple (node:net:1708:16)',
message: 'connect ECONNREFUSED 127.0.0.1:8080',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
constructor: 'Function<AggregateError>',
name: 'Caused by: Caused by: AggregateError',
message: '',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:8080\n at createConnectionError (node:net:1678:14)\n at afterConnectMultiple (node:net:1708:16)', message: 'connect ECONNREFUSED ::1:8080', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n at createConnectionError (node:net:1678:14)\n at afterConnectMultiple (node:net:1708:16)', message: 'connect ECONNREFUSED 127.0.0.1:8080', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
|
Test (macos-latest, 20)
The strategy configuration was canceled because "test.ubuntu-latest_20" failed
|
|
Test (macos-latest, 20)
Process completed with exit code 1.
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/tests/serverless.test.ts#L21
TypeError: Cannot read properties of undefined (reading 'close')
❯ tests/serverless.test.ts:21:17
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/src/integrations/serverless/adapter.ts#L161
TypeError: fetch failed
❯ executePipeline node_modules/@tursodatabase/serverless/dist/protocol.js:157:22
❯ Session.sequence node_modules/@tursodatabase/serverless/dist/session.js:260:26
❯ Connection.exec node_modules/@tursodatabase/serverless/dist/connection.js:144:20
❯ Object.exec src/integrations/serverless/adapter.ts:161:7
❯ KvStore.initialize src/kvstore.ts:21:5
❯ Function.fromDatabase src/kvstore.ts:15:5
❯ Function.openWith src/index_node.ts:63:33
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:8080\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:8080',
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:8080',
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
constructor: 'Function<AggregateError>',
name: 'Caused by: Caused by: AggregateError',
message: '',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:8080\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:8080', errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:8080', errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
|
Test (macos-latest, 22)
The strategy configuration was canceled because "test.ubuntu-latest_20" failed
|
|
Test (macos-latest, 22)
The operation was canceled.
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/tests/serverless.test.ts#L21
TypeError: Cannot read properties of undefined (reading 'close')
❯ tests/serverless.test.ts:21:17
|
|
tests/serverless.test.ts > Serverless Integration:
sdk/typescript/src/integrations/serverless/adapter.ts#L161
TypeError: fetch failed
❯ executePipeline node_modules/@tursodatabase/serverless/dist/protocol.js:157:22
❯ Session.sequence node_modules/@tursodatabase/serverless/dist/session.js:260:26
❯ Connection.exec node_modules/@tursodatabase/serverless/dist/connection.js:144:20
❯ Object.exec src/integrations/serverless/adapter.ts:161:7
❯ KvStore.initialize src/kvstore.ts:21:5
❯ Function.fromDatabase src/kvstore.ts:15:5
❯ Function.openWith src/index_node.ts:63:33
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1134:18)\n' +
' at afterConnectMultiple (node:net:1715:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:8080\n' +
' at createConnectionError (node:net:1678:14)\n' +
' at afterConnectMultiple (node:net:1708:16)',
message: 'connect ECONNREFUSED ::1:8080',
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n' +
' at createConnectionError (node:net:1678:14)\n' +
' at afterConnectMultiple (node:net:1708:16)',
message: 'connect ECONNREFUSED 127.0.0.1:8080',
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8080,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
constructor: 'Function<AggregateError>',
name: 'Caused by: Caused by: AggregateError',
message: '',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:8080\n at createConnectionError (node:net:1678:14)\n at afterConnectMultiple (node:net:1708:16)', message: 'connect ECONNREFUSED ::1:8080', errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:8080\n at createConnectionError (node:net:1678:14)\n at afterConnectMultiple (node:net:1708:16)', message: 'connect ECONNREFUSED 127.0.0.1:8080', errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8080, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
|
Check
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Test (ubuntu-latest, 20)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Test (ubuntu-latest, 22)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Test (macos-latest, 20)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Test (macos-latest, 22)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Test (ubuntu-latest, 22)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Test Examples
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|