Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Requests -> RequestHandler #156

Requests -> RequestHandler

Requests -> RequestHandler #156

Triggered via push September 3, 2024 12:19
Status Failure
Total duration 2m 0s
Artifacts

ci-cd.yml

on: push
install dependencies (pnpm)
11s
install dependencies (pnpm)
check linting (eslint)
16s
check linting (eslint)
check linting (prettier)
17s
check linting (prettier)
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 6 warnings
src/API/getPlayer.test.ts > getPlayer (guild): src/Private/RequestHandler.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/RequestHandler.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:56:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.7', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getPlayer.test.ts > getPlayer (houses): src/Private/RequestHandler.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/RequestHandler.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:69:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.7', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getPlayer.test.ts > getPlayer (recent games): src/Private/RequestHandler.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/RequestHandler.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:86:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.7', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getPlayer.test.ts > getPlayer: src/Private/RequestHandler.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/RequestHandler.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:103:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.7', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getRecentGames.test.ts > getRecentGames: src/Private/RequestHandler.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/RequestHandler.ts:54:17 ❯ getRecentGames.execute src/API/getRecentGames.ts:16:17 ❯ src/API/getRecentGames.test.ts:27:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.7', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/recentgames?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getSkyblockProfiles.test.ts > getSkyblockProfiles (garden): src/Private/RequestHandler.ts#L100
AxiosError: Request failed with status code 404 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.toUUID src/Private/RequestHandler.ts:100:17 ❯ getSkyblockProfiles.execute src/API/getSkyblockProfiles.ts:15:13 ❯ src/API/getSkyblockProfiles.test.ts:82:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'User-Agent': 'axios/1.7.7', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://mowojang.matdoes.dev/kathund' }, code: 'ERR_BAD_REQUEST', status: 404 }
src/API/getStatus.test.ts > getStatus: src/Private/RequestHandler.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/RequestHandler.ts:54:17 ❯ getStatus.execute src/API/getStatus.ts:15:17 ❯ src/API/getStatus.test.ts:20:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.7', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/status?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/Private/Requests.test.ts > Requests: src/Private/Requests.test.ts#L11
AssertionError: expected undefined not to be undefined ❯ src/Private/Requests.test.ts:11:27
src/Private/Requests.test.ts > Requests (Invalid API Key): src/Private/Requests.test.ts#L30
TypeError: Cannot read properties of undefined (reading 'request') ❯ src/Private/Requests.test.ts:30:26
src/Private/Requests.test.ts > Requests (Unprocessable Entity): src/Private/Requests.test.ts#L41
TypeError: Cannot read properties of undefined (reading 'request') ❯ src/Private/Requests.test.ts:41:26
install dependencies (pnpm)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check linting (eslint)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check linting (eslint): src/Client.ts#L19
'Client' was used before it was defined
check linting (prettier)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
tests
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/