Skip to content

Fix STACK-BACKEND-5K #3031

Fix STACK-BACKEND-5K

Fix STACK-BACKEND-5K #3031

Triggered via push December 24, 2024 03:16
Status Failure
Total duration 4m 24s
Artifacts
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

2 errors
tests/general/verify-data-integrity.test.ts > Data integrity verification > completes successfully: apps/e2e/tests/general/verify-data-integrity.test.ts#L12
AssertionError: Expected no error to be thrown! stdout: > @stackframe/[email protected] verify-data-integrity /home/runner/work/stack/stack > only-allow pnpm && pnpm -C apps/backend run verify-data-integrity > @stackframe/[email protected] verify-data-integrity /home/runner/work/stack/stack/apps/backend > pnpm run with-env tsx scripts/verify-data-integrity.ts > @stackframe/[email protected] with-env /home/runner/work/stack/stack/apps/backend > dotenv -c development -- "tsx" "scripts/verify-data-integrity.ts" =================================================== Welcome to verify-data-integrity.ts. This script will ensure that the data in the database is not corrupted. It will call the most important endpoints for each project and every user, and ensure that the status codes are what they should be. It's a good idea to run this script on REPLICAS of the production database regularly (not the actual prod db!); it should never fail at any point in time. IMPORTANT: This script may modify the database during its execution in all sorts of ways, so don't run it on production! =================================================== Starting in 3 seconds... 2... 1... Found 66 projects, iterating over them. [project 1/66] 078b90e5-6ae6-4cbc-8ee0-accf84a3488e New Project [project 1/66] 078b90e5-6ae6-4cbc-8ee0-accf84a3488e New Project ERROR!  ELIFECYCLE  Command failed with exit code 1.  ELIFECYCLE  Command failed with exit code 1.  ELIFECYCLE  Command failed with exit code 1. stderr: ERROR! Could not verify data integrity. See the error message for more details. StackAssertionError: Expected status code 200 but got 401 for /api/v1/projects/current: Development key override is only allowed in development mode This is likely an error in Stack. Please make sure you are running the newest version and report it. at expectStatusCode (/home/runner/work/stack/stack/apps/backend/scripts/verify-data-integrity.ts:129:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at async <anonymous> (/home/runner/work/stack/stack/apps/backend/scripts/verify-data-integrity.ts:73:7) at async _recurse (/home/runner/work/stack/stack/apps/backend/scripts/verify-data-integrity.ts:152:12) at async main (/home/runner/work/stack/stack/apps/backend/scripts/verify-data-integrity.ts:72:5) { extraData: { request: { method: 'GET', headers: [Object] }, response: Response { status: 401, statusText: 'Unauthorized', headers: Headers { 'cross-origin-opener-policy': 'same-origin', 'permissions-policy': '', 'referrer-policy': 'strict-origin-when-cross-origin', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'content-security-policy': '', 'access-control-allow-headers': 'content-type, authorization, x-stack-project-id, x-stack-override-error-status, x-stack-random-nonce, x-stack-client-version, x-stack-disable-artificial-development-delay, x-stack-access-type, x-stack-publishable-client-key, x-stack-secret-server-key, x-stack-super-secret-admin-key, x-stack-admin-access-token, x-stack-refresh-token, x-stack-access-token, baggage, sentry-trace', 'access-control-allow-methods': 'GET, POST, PUT, PATCH, DELETE, OPTIONS', 'access-control-allow-origin': '*', 'access-control-expose-headers': 'content-type, x-stack-actual-status, x-stack-known-error', 'access-control-max-age': '86400', vary: 'RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch', 'cache-control': 'no-store, max-age=0', 'content-type': 'text/plain; charset=utf-8', 'x-stack-request-id': 'te3m2jvpth6307zw', date: 'Tue, 24 Dec 2024 03:20:29 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5', 'transfer-encoding': 'chunked' }, body: ReadableStream { locked: true, state: 'closed', supportsBYOB: true }, bodyUsed: true, ok: false, redirect
build (20.x)
Process completed with exit code 1.