Unify item and group data structures #395
node.js.yml
on: pull_request
Annotations
21 errors and 3 warnings
check
Process completed with exit code 1.
|
lint:
src/components/card/ItemCard.svelte#L22
Unsafe call of a(n) `error` type typed value
|
lint:
src/components/card/ItemCard.svelte#L22
Unsafe call of a(n) `error` type typed value
|
lint:
src/components/card/ItemCard.svelte#L25
Unsafe return of a value of type `any`
|
lint:
src/components/card/ItemCard.svelte#L25
Unsafe call of a(n) `any` typed value
|
lint:
src/components/modals/NewGroupModal.svelte#L32
Unsafe call of a(n) `error` type typed value
|
lint:
src/components/modals/NewGroupModal.svelte#L32
Unsafe call of a(n) `error` type typed value
|
lint:
src/components/modals/NewItemModal.svelte#L33
Unsafe call of a(n) `error` type typed value
|
lint:
src/components/modals/NewItemModal.svelte#L33
Unsafe call of a(n) `error` type typed value
|
lint:
src/components/modals/NewItemModal.svelte#L33
Unsafe call of a(n) `error` type typed value
|
lint:
src/lib/itemFilter.ts#L20
Unsafe return of a value of type error
|
tests/backend/bans.test.ts > Clients that don't specify a user-agent are blocked:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Generated test cases > Errors if the server is not set up ('Get readme'):
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Generated test cases > Errors if the server is not set up ('Set readme'):
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Generated test cases > Correctly updates the readme contents:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Generated test cases > Sets up a default readme:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Other test cases > The readme is set up by default:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Other test cases > Invalid token > Token not provided:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Other test cases > Invalid token > Token has invalid structure:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Other test cases > Invalid token > Token has been invalidated:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
tests/backend/readme.test.ts > Other test cases > Invalid token > Token has valid structure but incorrect signature:
src/endpoints/fetch/response.ts#L22
TypeError: fetch failed
❯ json src/endpoints/fetch/response.ts:22:15
❯ tests/setup/serverBeforeEach.ts:13:3
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5096',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5096,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at afterConnectMultiple (node:net:1689:7)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'Caused by: AggregateError',
toString: 'Function<toString>',
stacks: []
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'Error: connect ECONNREFUSED ::1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED ::1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' }, { stack: 'Error: connect ECONNREFUSED 127.0.0.1:5096\n at createConnectionError (node:net:1652:14)\n at afterConnectMultiple (node:net:1682:16)', message: 'connect ECONNREFUSED 127.0.0.1:5096', errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5096, constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>' } ], code: 'ECONNREFUSED' }
|
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|