Skip to content

AI Unit Tests & Type Check #4

AI Unit Tests & Type Check

AI Unit Tests & Type Check #4

Triggered via schedule February 10, 2025 00:34
Status Failure
Total duration 43s
Artifacts

ai-tests.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 errors
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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f80446585382d4-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=9VY4jlmOIQNG3zDO7s9X5IB3Shtq7CHxAMMYPukmvVI-1739147700-1.0.1.1-zkU7FkvBNYRMKaUpBBtOPwnUGNr7qf2srYd8Zj4jUy4b6vdEY_AszSQDCayvX4o_14alOL.QldWSwFINsBCW1w; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=C6OEsm3BaC9xbwkYpF2vooJd_RUD_B_RG0r4_rjKdZY-1739147700327-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_91f7cf8412ede72a0da78ea737aa5358' }, request_id: 'req_91f7cf8412ede72a0da78ea737aa5358', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f804465867e644-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=RCluH1wXrCx2IpXpabbXLVX8tnE5HXwmtmv7fl4u38g-1739147700-1.0.1.1-.l29nNiOXS4wuuRHexa6PnrGGgDwbCTyAJ.Ru7RKu1AKDvsBPKC1NuKfZecqofajUlTJtFMkQDlG1N._U75vFQ; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=SWqZMCe44eG3a05Nz53WoGw.cR1IL9BPloedd.mm0GA-1739147700300-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_1c6782f38f98ca037a958f5aaec2b593' }, request_id: 'req_1c6782f38f98ca037a958f5aaec2b593', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f80447192382d4-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=w9_HbrqEkJ1qU2wrX4WEoCXvDJ82VWq0Jnd4I.rj1EA-1739147700-1.0.1.1-EnE0qrID8456B.kFn64rJoYeSq0lhdQmPIo91DEa015RysLYqaeTtdIk_uCU0eWruHFfkkTBzG3EdZ3S0_aUwg; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=jT5J.G6ayDDUTkvad_jjxl0Phb59NIUNSV1SNTIcHoo-1739147700432-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_069f34b370b0f0b50c44c7ed3eba017d' }, request_id: 'req_069f34b370b0f0b50c44c7ed3eba017d', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f804467aeac5bb-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=tNRAlS5gF6a26VqnWYSvuaGWV8xmfTcER557g91CvR0-1739147700-1.0.1.1-7OscCRWo3wmeocHo4R3f4RvmLUu.fp7q.y2TM1YnQQ5ubL4OuujGjXo4f0T84HBk5CAWh1T2RvQBKmJTcpJkFw; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=LyUziizdb166STTK_pzXj1fhrXHnSnjNTb.C8.vrcCQ-1739147700345-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_5a5674f74c320633183c56eec4b1c3f5' }, request_id: 'req_5a5674f74c320633183c56eec4b1c3f5', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f8044668abe601-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=A7__b79Sq61c_q82MInYtG8LtVmwflYlWOADJDdhoOM-1739147700-1.0.1.1-tOYu6HNWU28suZxX1WFp3lD4t9QPhmLyoesW257HUpMtkXdBthUoKPT21sVyo_sEsleY89SLOIOCAbnUfbpH5A; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=WxnWBKw0C.1DD2B0VGOAtYtjyie04A3qk.YBT3CzLIU-1739147700336-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_1308c4bda5d508e1038400a31b9bd7b7' }, request_id: 'req_1308c4bda5d508e1038400a31b9bd7b7', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f804467dac3b7e-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=RJ1kDAuimAJiHGYZ6L3ExYiNtYrLyljAgVFnsy2I0VQ-1739147700-1.0.1.1-dIF7uxxzKJ1cU_ZUs0bnWElfY9P0n8abB9iiZ7gq7BfOS4AnQU0H21j2AiEPeeWqtYnNd_wt81EBmxmM23unzA; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=7xQNOCmnaRT6COa09zHmpuiweYKULYO7esvlpHhGLLY-1739147700436-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_9f58bd5a7b26bc9a0f0f83226d7e6ebe' }, request_id: 'req_9f58bd5a7b26bc9a0f0f83226d7e6ebe', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f804467cac0621-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=ArrsJBs7Sb9NJFKFHixRB.iY.WBo4H98KcLRtc9KtR0-1739147700-1.0.1.1-pTWU4qFysAoO8OBSgTzrycrUo9kxecCZkpVYdMR2DKdDWo4Le6LvJsa8nDlLdj77GXacatxwnttTek3yW_K_WA; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=lkuFjZyN3DlIjflI8mWESxb3MAWfGlRb68KOH6Jj3Kc-1739147700335-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_eb2f5a6667189d6cb5479972a5ee8167' }, request_id: 'req_eb2f5a6667189d6cb5479972a5ee8167', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f804466e771757-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=2v5ZqN5uWkVLMTdHRO9XyIh74z6TCttON5aetrNjSF4-1739147700-1.0.1.1-t70WMkV1h87jJvUs.N5GoAtBTpKItGzr2CGZTBt99WcQQ4WAZkAq5qQnG_ZCNKzdD.k_ZXkOz4wpJ_OSRQF_Mg; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=rmrp_7OZXmL9rnIPnxQgl4SNesHjlSJW3EyLHAypfyA-1739147700352-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_3159c2db18d838712a7d77f1bd1d11de' }, request_id: 'req_3159c2db18d838712a7d77f1bd1d11de', 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f804477d990621-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=3vcgfU0lbz6sBeHi1bUQeZ7rn2vY38QJkF1JoSGZ_m4-1739147700-1.0.1.1-Lx.dTzGVAUiOPv4hLB8gG33_SKDm.lZtTI577JEnhNBtf.LOyraYnzLtJF8NXEdsi62G.T30xMnEsRCGY837Sg; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=kigznOqzcNtkd09u6cnstR.BlkB9t5oWRh6uYAIFs8o-1739147700494-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_014e01d34c0cd9dd77df9e76c766cca9' }, request_id: 'req_014e01d34c0cd9dd77df9e76c766cca9', 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 > 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/[email protected][email protected][email protected]/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core.ts:499:24 ❯ Module.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': '90f804478c04e601-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 10 Feb 2025 00:35:00 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=8UAeudune3AnUcJxdRbaUbuYNjoQmEd7Nk4YBD6_GqU-1739147700-1.0.1.1-rpYfy2qrTKjpjEDomHZgPrSgB.Vc4VEUWNhI.MfLhGUhA3.BwsQj5OynIHL81RWnVHnheMYxwcv_Q_PWU2kCxQ; path=/; expires=Mon, 10-Feb-25 01:05:00 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=c1kwjPk7zJ7b98iM6uh6A5H1nWIn.ERPiFKDrY8BDBs-1739147700533-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_25456af77ecd4a091ade4beb43cbd395' }, request_id: 'req_25456af77ecd4a091ade4beb43cbd395', 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 }