Support --json in socket repos list (#344) #727
test.yml
on: push
Tests
/
Resolving inputs
0s
Matrix: Tests / Test
Annotations
2 errors
|
test/dry-run.test.ts > dry-run on all commands > should support: `manifest scala --dry-run`:
test/dry-run.test.ts#L420
Error: Snapshot `dry-run on all commands > should support: `manifest scala --dry-run` 2` mismatched
- Expected
+ Received
"\x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields:
- The DIR or FILE arg is required \x1b[31m(missing!)\x1b[39m
- - Can only accept one DIR or FILE (make sure to escape spaces!) \x1b[32m(ok)\x1b[39m"
+ - Can only accept one DIR or FILE (make sure to escape spaces!) \x1b[32m(ok)\x1b[39m
+
+ D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\index.js:613\x0d
+ throw new ErrorWithCause('API returned an error', { cause: err })\x0d
+ ^\x0d
+ \x0d
+ ErrorWithCause: API returned an error\x0d
+ at #handleApiError (D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\index.js:613:15)\x0d
+ at SocketSdk.postSettings (D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\index.js:586:85)\x0d
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d
+ at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:640:22\x0d
+ at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:627:7 {\x0d
+ cause: HTTPError: Response code 502 (Bad Gateway)\x0d
+ at Request.<anonymous> (file:///D:/a/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/node_modules/got/dist/source/as-promise/index.js:86:42)\x0d
+ at Object.onceWrapper (node:events:633:26)\x0d
+ at Request.emit (node:events:530:35)\x0d
+ at Request._onResponseBase (file:///D:/a/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/node_modules/got/dist/source/core/index.js:727:22)\x0d
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d
+ at async Request._onResponse (file:///D:/a/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/node_modules/got/dist/source/core/index.js:766:13) {\x0d
+ input: undefined,\x0d
+ code: 'ERR_NON_2XX_3XX_RESPONSE',\x0d
+ timings: {\x0d
+ start: 1740757507089,\x0d
+ socket: 1740757507090,\x0d
+ lookup: 1740757507090,\x0d
+ connect: 1740757507090,\x0d
+ secureConnect: 1740757507090,\x0d
+ upload: 1740757507090,\x0d
+ response: 1740757507202,\x0d
+ end: 1740757507206,\x0d
+ error: undefined,\x0d
+ abort: undefined,\x0d
+ phases: {\x0d
+ wait: 1,\x0d
+ dns: 0,\x0d
+ tcp: 0,\x0d
+ tls: 0,\x0d
+ request: 0,\x0d
+ firstByte: 112,\x0d
+ download: 4,\x0d
+ total: 117\x0d
+ }\x0d
+ },\x0d
+ options: Options {\x0d
+ _unixOptions: undefined,\x0d
+ _internals: {\x0d
+ request: undefined,\x0d
+ agent: { http: undefined, https: undefined, http2: undefined },\x0d
+ h2session: undefined,\x0d
+ decompress: true,\x0d
+ timeout: {\x0d
+ connect: undefined,\x0d
+ lookup: undefined,\x0d
+ read: undefined,\x0d
+ request: undefined,\x0d
+ response: undefined,\x0d
+ secureConnect: undefined,\x0d
+ send: undefined,\x0d
+ socket: undefined\x0d
+ },\x0d
+ prefixUrl: '',\x0d
+ body: '[{"organization":"994"}]',\x0d
+ form: undefined,\x0d
+ json: undefined,\x0d
+ cookieJar: undefined,\x0d
+ ignoreInvalidCookies: false,\x0d
+ searchParams: undefined,\x0d
+ dnsLookup: undefined,\x0d
+ dnsCache: undefined,\x0d
+ context: {},\x0d
+ hooks: {\x0d
+ init: [],\x0d
+ beforeRequest: [],\x0d
+ beforeError: [],\x0d
+ beforeRedirect: [],\x0d
+ beforeRetry: [],\x0d
+ afterResponse: []\x0d
+ },\x0d
+ followRedirect: true,\x0d
+ maxRedirects: 10,\x0d
+ cache: undefined,\x0d
+ throwHttpErrors: true,\x0d
+ username: '',\x0d
+ password: '',\x0d
+ http2: false,\x0d
+ allowGetBody: false,\x0d
+ headers: {\x0d
+ 'user-agent': 'socket/
|
|
Tests / Test (22, windows-latest)
Process completed with exit code 1.
|