Skip to content

AI Unit Tests & Type Check #54

AI Unit Tests & Type Check

AI Unit Tests & Type Check #54

Triggered via schedule June 16, 2025 02:24
Status Failure
Total duration 1m 19s
Artifacts

ai-tests.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/sql/rls.test.ts > rls chat > delete policy has USING but not WITH CHECK: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:242:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc59ecc81d9-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=8Mm.naxm0TODASx9JGWya3hlnaJwu7_wutuFt_yDj8U-1750040745-1.0.1.1-AGDH_QxeLyCCmwbf2nuUe2NB7mImkBg6Zv0OHB9Kkh2khX5N9kbb_4BLhfrYm26rApwUs2tcq2eBqHvJ7GyO6OoUboL3KUCAr_fT0ZHq7FI; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=Vd577K9ak42ek_eWJ2SD0uHKRtOnNQrCMfQ20zib71c-1750040745954-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_7e9a9bd1d9e9e933c1a5d4ed105438ac' }, request_id: 'req_7e9a9bd1d9e9e933c1a5d4ed105438ac', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > update policy has USING and WITH CHECK: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:219:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc598906fda-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=TtwRy_HZuG5iuOGLq2nfiPqjAhav_lmp1G3pcV2VAf0-1750040745-1.0.1.1-1MYqDIYAHLmu4kN5UxRKJHzwHk_abiGfClcXE_INHP5k0BNKIJSVMM3cCGh6xJ60HRPp_DOnOUmEoOdAPTd6VGdM3xRc5if5RHKhbaezci8; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=_4QfExJ68G4tb5A7CVBUDOnJUs2hWCM1ZBhO1bGItik-1750040745944-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_b259df87ca7ee4c9b6c52f5300f820f3' }, request_id: 'req_b259df87ca7ee4c9b6c52f5300f820f3', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > insert policy has WITH CHECK but not USING: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:196:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc4e8436fda-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=asmra5jPrCoW75q6QpXgWdB5L_dkxIBXWzYCmL8TBsA-1750040745-1.0.1.1-rP21DVb.b1cxc7OKxF9fyhbo9lf_ifA7bauAaQpzhBNjl27AazrXYFZCPnrHLKTLIkT2VmCCzM6d1CkSKzJRH7fbvJzKimctpCILFJ87CxA; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=nDZheeEXkmcZrGRRzVUjYThWpKQIhMVyOLge29t_vvU-1750040745835-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_2b4367da10d4f043de174d1626252205' }, request_id: 'req_2b4367da10d4f043de174d1626252205', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > select policy has USING but not WITH CHECK: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:173:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc4efc3173f-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=HC2uxC0sOVbSpzkZyuu8IVuXHOs066ze5cPrKG2bcfI-1750040745-1.0.1.1-qLKuqjbar8cw_ikLg1JRKLz39njU5BiGp7cquo_elOCMKD27ugE_NTSbRdzXsPAd9aosnzDUFQFr4Y5G_Fnnv7tp7IEB59GCJN8H121zeN8; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=I1ftuEH4dnaiPA264qoX3nbflVux3ai3XC3e7zgUdf4-1750040745845-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_7acf9b9a62694f72a597fc969e45e706' }, request_id: 'req_7acf9b9a62694f72a597fc969e45e706', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > wraps every function in select: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:115:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc4ee3481d9-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=TFFWENlOtRnuTbrgBQV2vPSMCNgDScKE7XIc3DTxv2M-1750040745-1.0.1.1-eB2BzDy7UFIgTWRzIDneRTJ7s3jzZBrbHKwCq8OQ5wrV32E9IKj0IYLg30Fmacm_6BELWYizKvEmj10oiKxHWDzpxiLIYnVmzTWQmrTlgVo; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=XT6xww9XjRjU9K9Bd8EhX4O5JuJsy8_3ojLfnNqg6wA-1750040745840-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_b1629eec50b49ce826658a0a5f9c0606' }, request_id: 'req_b1629eec50b49ce826658a0a5f9c0606', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > uses anon + authenticated roles when table viewable by anyone: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:94:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc4ee8f9d90-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=R3O3QXv70fKi2bYMO6l48e.ZPG29QVQCvgL_Sqq2Hs4-1750040745-1.0.1.1-t3ZhX0bBBE..vnWE2qBftlCVETYtWrn0yH.Lvw37R8uThZvV5XRTKF.SyxXztt.c2mwrc64y7jmy_KlQ.EjXRNUSzKLFPWlHzDkX.DzyEgw; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=XT6xww9XjRjU9K9Bd8EhX4O5JuJsy8_3ojLfnNqg6wA-1750040745840-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_2307c3e370441c7efae3e4ccdf47692c' }, request_id: 'req_2307c3e370441c7efae3e4ccdf47692c', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > defaults to authenticated role: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:73:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc4fd1a3173-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=rpKXwacgXQtnPiiLL36kcp6Cz_UNhTlhELn4hZQcrdQ-1750040745-1.0.1.1-J0Df4GSxJckxE7BlYfgsjGbaJ_K8zy91mT_kA49jonXHA79AA0maBnE0JE46l6Pgv3HmrFUofWQAadxdH6E0aFLD_kPNWW8WqnCzihP5FvQ; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=HKI7u.daAG_ROZYwuq6rKPK2Zy4K9_rWQIs6lmvMup0-1750040745842-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_7424f262a1b98c994ad4a9cf3d048b0f' }, request_id: 'req_7424f262a1b98c994ad4a9cf3d048b0f', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > title > title matches content: packages/ai-commands/src/sql/functions.ts#L166
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ titleSql src/sql/functions.ts:166:32 ❯ src/sql/functions.test.ts:50:36 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc5a83df276-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=6c4juFSQKQvlAmw8JsJCJZUpvGcnideeJCSkLKRwDOo-1750040745-1.0.1.1-GPQ4Zk42P2aAMLs8n.Zg8GcMGMDYNdGReLu0f0x7YG6kep_L0LFkJrk0MpBWX0OaRwknbpVB6avH4mGTWrHUTrVA.ahAi83mgYNpqsaYmvg; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=0i_yOSJmI4QDNGcFITMyBt2S6_vfRN6foh_kqQ5qFBg-1750040745948-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_a31dc4c556ae7842bc65a22c22937399' }, request_id: 'req_a31dc4c556ae7842bc65a22c22937399', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > debug > fix typos: packages/ai-commands/src/sql/functions.ts#L106
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ debugSql src/sql/functions.ts:106:32 ❯ src/sql/functions.test.ts:35:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc4efb93b1d-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=jhFsKXgr8ZLXdDnqYk0pl2Yn9ttOUh6hpiXVg6WsLHU-1750040745-1.0.1.1-_9gk1FPw.9DIexcflyO_.1K5uIzhU7tX_QWbRtjREeIl3msR55YpzfZbzLugWkRYFrTNIiWaH.WQp_8OwGZ2xCyKSUOXLPeUsdGq3_QTGQ8; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=qdYH8lCwQACILc6nhISfhEX4QrDSdVPdC644jF7tlXU-1750040745834-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_87fb051b335ce01e3e0397310398e4e5' }, request_id: 'req_87fb051b335ce01e3e0397310398e4e5', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > debug > fix order of operations: packages/ai-commands/src/sql/functions.ts#L106
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ debugSql src/sql/functions.ts:106:32 ❯ src/sql/functions.test.ts:13:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9506dbc4ee97f276-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 16 Jun 2025 02:25:45 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=Pi4D576tkmYhv1FDYlgs00I5DaMhwKY7uI7BGQdbu7U-1750040745-1.0.1.1-NYbqqYzNpfylv06tigbodLqaDaZzlou7DPKBnfwtqQ_UADg9irmjasr1QTgfH2osi1Ztw6PLUno9BBgcbsvNlHaLFoa9g0a0MnVxHOZylVY; path=/; expires=Mon, 16-Jun-25 02:55:45 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=nDZheeEXkmcZrGRRzVUjYThWpKQIhMVyOLge29t_vvU-1750040745835-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_4994bdcddbe0b3227075170c1c17f042' }, request_id: 'req_4994bdcddbe0b3227075170c1c17f042', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }