Skip to content

AI Unit Tests & Type Check #42

AI Unit Tests & Type Check

AI Unit Tests & Type Check #42

Triggered via schedule February 24, 2025 00:34
Status Failure
Total duration 33s
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': '916b5f9178b2390a-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=jvkzdXvvVouwF3hQw1XhLvUx90DLEH53UzAU1CZkX9Q-1740357302-1.0.1.1-PY.flK0FsUhbEA3EJsmS.tvcc87x63gqsc9s5nHBy8XHb561pHnklbnL3dgG_XMwQn9usv_jxKtuMqs1njfggQ; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=2OvWsxKhPd7xQWjMw.xjDmXCaCFCF71QulGalDTcGxw-1740357302126-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_8dfae5907d50f3975ebd5db3f1d9fc2d' }, request_id: 'req_8dfae5907d50f3975ebd5db3f1d9fc2d', 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': '916b5f917a16c5b1-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=YTeFBlKN5JHZdMFhNfmdlBcgxycaxblg0WUIf7B4iVk-1740357302-1.0.1.1-UjrPUXRfgUj_1G3uZbd9vSRwN.jYWjZ5HDUvbYTq0VLR0oAjZysMJlVLdRLo4l25jcyVMC0jnPa_n1DBPQAwkg; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=NyNMIwmmwrgvGIXlFwiYzqNON9P_7KW_T5Z1VP4lNF0-1740357302117-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_c6cfebf25723f031d8356d26d9372bd3' }, request_id: 'req_c6cfebf25723f031d8356d26d9372bd3', 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': '916b5f925a1b390a-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=KiS.wEKyVwuoorL3oTE4yUQeYJGCNdVGNxbuvaLorAg-1740357302-1.0.1.1-G4iHEmZ8LIlSgmIYi5uoEqerxvSAAmOQBVKI2NxPZEmQly1O7KmRcsl6a0dilAEig17IkBe5ymYn_hPXTFP9gA; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=QhLkUAJt4J6NHYU963DZe67dZqBTcpCaMVC7tsMaNbc-1740357302249-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_14d562e5cd8b8564de3b1a5d455ce075' }, request_id: 'req_14d562e5cd8b8564de3b1a5d455ce075', 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': '916b5f917ef729b6-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=xmCSEbKNM7HHD6nfUsHj9_YRs2ZUKYZ3FT02qUb.phw-1740357302-1.0.1.1-xvakMBG9BLeuegReCM5Xf.24cOkgXo5mJyGk4AafLa07Fj5hHrvy8D4WYE4ziJ63zNUAZPlTiA4.zviebuJpZQ; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=6p_1EEb3HztGIRukcgoOmjngvXn.vJyWwdfCHk3.lk4-1740357302197-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_867df2e04325a557a553e64691abc3f4' }, request_id: 'req_867df2e04325a557a553e64691abc3f4', 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': '916b5f918fa9ea22-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=NKWvcUrcLGG8N2ud5Fc2yoBLf0slC_cZ.k_8g7TwMjY-1740357302-1.0.1.1-6nJGXSo5iDUOxGuFN.hZY.51uu1vauyKgMf0pZZcE6N97Fapj3HUKcyIv1tkti3PUMoPaa5rSETLZxASvIL2wA; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=2etwq5s5b8oG_mS0ogEyoIRhDPMKWy60EUiL0R1yKzg-1740357302109-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_c7551e34f3270854648c346c4530a41f' }, request_id: 'req_c7551e34f3270854648c346c4530a41f', 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': '916b5f918ed61752-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=mOZcNVFBgT3tedPBMz0WkoPhhH7zTSigF2mWrVTM9RE-1740357302-1.0.1.1-UgU.QWxsU9T6YOkpbnWQchqAAS36WLyedMPsS9PPCBlgMUy4d7w0Rm8Sd.tV890L40VBwmcbjNQYoZs.9Cv8.Q; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=eIMNE9t7mKwp6keYU8WzkbM5QVG3SsWLXL18LDpyt5s-1740357302139-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_878b85b6b61213fdf036904aec5560c3' }, request_id: 'req_878b85b6b61213fdf036904aec5560c3', 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': '916b5f918df329bc-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=qjtUsnt.GLuUMbv5DrmqMXIhvKWhzvTKpRhiaM2PgT4-1740357302-1.0.1.1-KDnlp82XuyR.7o4.6oAvVb6xEWIoEVEcGqEH.ezq6fNKZ.KuzZpx5fZZ5PR_avXkH3h96RjCFVKoNbZZSOZGjQ; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=ph1BckmUbsfuz3EExQBygEmkHsYBDLgsZCcYgc1qz4c-1740357302133-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_b13f86dac3ec30e6a6117bda5e189489' }, request_id: 'req_b13f86dac3ec30e6a6117bda5e189489', 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': '916b5f918f59c9bb-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=jCcvestmHX82YuCiTce3cBe22svF9OXOo1l7wycFTW8-1740357302-1.0.1.1-JeQbvdV0ILVtKGrlIpJXIdSAE5qFAcMreCt6KdWBPL.2xIEaLT.hf6kuEHVFn3jt4WoIJtQXawGME54W_SE67g; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=44fLWvXldTTiH4Fsj5yDEgJGNApJ40jQz99nU4TZhAk-1740357302099-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_666ce61c2ab0c060c1896defd6859a72' }, request_id: 'req_666ce61c2ab0c060c1896defd6859a72', 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': '916b5f92392cc9bb-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=JCNTdF8xppc2hGQ0_13SUIlCtfpTS0e1XzezV9ITc.M-1740357302-1.0.1.1-fwhAeWDcbe0P_c9uEpbbVq77wS4bdTBC96vS77GUIkQ_MVqyXJqB11DIYZHZ1mRgzS7LfxluhL_tyew6j46wnw; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=BrodRrBUW9b8MdCx3II4fI6sjEFJhG6OJZnUmPsNZfM-1740357302206-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_fd94ed91b086748ff89e6d18e4cf7fe1' }, request_id: 'req_fd94ed91b086748ff89e6d18e4cf7fe1', 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': '916b5f9239fdea22-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 24 Feb 2025 00:35:02 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=_dRc5Suh1Yg55z3kevZRgtYEgDzNNjbW9vhI4VLu_uQ-1740357302-1.0.1.1-01nlz04E8qLOtOmZ3r9n9l3fKrWfHSsFMwJ4GcTh.RRZH7GIn.k8_.LzQFf0fYVBNlzw.IAQmeXHPnA5PUrJjQ; path=/; expires=Mon, 24-Feb-25 01:05:02 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=yXpNenE6ULQN9zpKBvbV0hH.hoyiGaVWE4yPMtpExVo-1740357302216-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_75ff7331d81d72aeb3e3f9219037e825' }, request_id: 'req_75ff7331d81d72aeb3e3f9219037e825', 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 }