trigger.dev
trigger.dev copied to clipboard
CI: e2e auth full failing: jose generateJWT 'payload must be an instance of Uint8Array' (jwt.ts:66)
What fails
Workflow .github/workflows/e2e-webapp-auth-full.yml fails on main in job 🛡️ E2E Auth Tests (full).
- Run: https://github.com/triggerdotdev/trigger.dev/actions/runs/41271385707
- Commit:
41ad1995b3 - Latest
mainrun (checked 2026-11-01) still fails: https://github.com/triggerdotdev/trigger.dev/actions/runs/41271385707 (2026-11-01 00:00 ET)
Error
FAIL test/emailChangeConfirmation.e2e.full.test.ts > redirects off the token URL and confirms only when the rendered form is submitted
TypeError: payload must be an instance of Uint8Array
❯ new FlattenedSign node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jws/flattened/sign.js:14:19
❯ new CompactSign node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jws/compact/sign.js:5:27
❯ SignJWT.sign node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwt/sign.js:12:21
FAIL test/auth-api.e2e.full.test.ts > API > Query dashboards — GET /api/v1/query/dashboards (sanity) > JWT read:query: auth passes
AssertionError: expected 403 not to be 403
Test Files 2 failed | 7 passed (9)
Tests 4 failed | 254 passed (258)
When it started
- Last passing: aed084860 (run https://github.com/triggerdotdev/trigger.dev/actions/runs/40266944490, 2026-10-26 00:01 ET)
- First failing: ba9448974 (run https://github.com/triggerdotdev/trigger.dev/actions/runs/40447349222, 2026-10-27 00:00 ET)
- 6/10 recent default-branch runs failing. Consistently failing since last passing → likely real.
Likely cause
[email protected] receives a non-Uint8Array (cross-realm/TextEncoder) secret in the test env.
Suggested fix
Pass the secret via new TextEncoder().encode in the same realm, or bump jose.