[pull] master from supabase:master #532
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': '951c137dac26dda6-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=sibDCyLZnYR45Mn3DImpvIuJeR3Fg5DQD3_GjM9OX7M-1750263229-1.0.1.1-FfIhG8eGxOtF9Rje6pgMio491NNY0R9dHT9.onVylDhbpstZIqxzDqKSf_.JxveLnYiUVvMgjxrg96PKCDI6eVA6Xwdr6_Ig1Wz0GX2DLjM; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=cXmGHDGtBISBz5Z3XoEX7.CRyFyajezAqIyPDxzPjio-1750263229160-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_87e21a9e6d4c4554e3b2f4108fe84a1d' }, request_id: 'req_87e21a9e6d4c4554e3b2f4108fe84a1d', 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': '951c137daf0105a2-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=biyxjJs9vV5m.4HydjJU7i6bxsIhFbthFNhDwLo1rVA-1750263229-1.0.1.1-Z8SJ_u0joi_BJgi0_u7a507wwCk2dZO7ZV8W42tl7HM5plOJF.xTrKI69JEKNqjF2aC5bAsvUN03G10gI4y78lfL1QFL1wvm.QgTu72yGAQ; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=wK0TfHF_71ipfYHsk0SQfDJPlTspA3vao9aUCRabQr0-1750263229158-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_3765a34e938948a723941987218fa503' }, request_id: 'req_3765a34e938948a723941987218fa503', 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': '951c137d092128c6-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=IN7sc9rIxZrw7ovwo22z.rNsmkQoRlfbjnNCfaFlWRI-1750263229-1.0.1.1-aGlfYRAE3TBhLJDGNwOiT5NetgTUitov._L1xcBZLdGpdAZLFoetnG0WefyC5I1j9utYc25uZYozmSuL3nUZcuPfUAzYA3DPvTFgIo7pvWs; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=9ucBQyGyve4XmvffaowHM9QNnmYPgkJr3mJ_G7WeKWU-1750263229064-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_9a15e5c40abaed86130a94123aa3483c' }, request_id: 'req_9a15e5c40abaed86130a94123aa3483c', 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': '951c137cfe6a05a2-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=NYsWCvcqU6CRAZtCGZLZCcZYKPAAM15angn3G8qEv9I-1750263229-1.0.1.1-nu7uzrTIy7tP_dq9yCKc2_Khjzj3.3wv9sW7UCdASHBxpGVdQjNyC2NdsDgQWFq1tNBOk5PICyYcDmnXqFlgFD_yc1N4I7eRLEghHBjRCFU; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=k5KnNdVaztBRFZXn7WNp0vUsOALCFvkuSGa5Y9Ouqhg-1750263229041-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_76835fe3158469417332869d2d49cb8f' }, request_id: 'req_76835fe3158469417332869d2d49cb8f', 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': '951c137cfef423d0-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=gQ.dsMfTVPg1LmAk.RoLgw8kNLeJu.9qAesvq8J2xPI-1750263229-1.0.1.1-oEkN4ibM9cXNHvG.Jl5wYBxCIYACkOjn6dseUa.TFQXy9HDqWEq5Lw090M6Q7CH8KfIsjpMg.foE6MoIp68XrYceeSglxscerUl_hDdloOs; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=WwbgtNdX9_Uy0Fx6irJBFu_c6CRSidrOA6l1ykvh1bE-1750263229059-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_a8ede724a8d7056366a11a471d2c8740' }, request_id: 'req_a8ede724a8d7056366a11a471d2c8740', 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': '951c137d0aa4e8c5-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=q2fnsGTmHL5.8Z.mmrbKA28sDG6ZsS_gcjYo3vs7m3k-1750263229-1.0.1.1-jZAp0h_vtILHOw1zFdATk6TZBtj0.xxHvLmR68hCK1S1_nJCynF2jN0_MJu_RGFR6myFojO7E4jdke11AxE5g0jmA3B8DRDizgOTMkU0erQ; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=spgGfANLwcyzovIh2ic7.4.xPajVxDUmXIflU_pR4s0-1750263229094-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_11f8d452848799f5a64d1d723d2059d1' }, request_id: 'req_11f8d452848799f5a64d1d723d2059d1', 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': '951c137d0a7edda6-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=.RfT2X.vK2DeX0lejPZooY8ykfc089ApbBjR1g1j7jk-1750263229-1.0.1.1-ZlyEbwEC1eJdIoukaloYa69Vt88PMaLPyDHkljApvxwK4j4HTI3phCUOXfzbONPp.UX9veQAyWoURNZg_jGf0vsVWkqRb7qCfC84RhaPTjE; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=p7UV61eNcVp8hwVhC28Qu.RDiLo.gPxMr_yhZx6uq4U-1750263229052-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_6bf055e2273c02715f97e86364d3489e' }, request_id: 'req_6bf055e2273c02715f97e86364d3489e', 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': '951c137d6a8b5a33-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=KGe3WqtMz50k1SbpCm7cRPZkYlHtNvaIOXZOfwdbs4k-1750263229-1.0.1.1-JfHJTXu8KrOFoZV5uii31THjiNt8KtMF_Xfnzo3aoYzrLEPgmFSm9cE3U_i8qjfDqiG7B1zW0O_Gs8Nfjea2jNXIMUVseWRLsmWGa9KDGuQ; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=i5bGpS7hsEk8uZdCIu6GHSkUd0sM8kY7K_WJEfhtj7Y-1750263229129-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_737f7b647ee48593b3161c2fbf7b0829' }, request_id: 'req_737f7b647ee48593b3161c2fbf7b0829', 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': '951c137cb9fb5a33-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:49 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=zT01rhRN1PBS.w4ocEjm6Il2TpW9cr2szVt7UU9em_8-1750263229-1.0.1.1-qVNTvajCC1_skpYf0kX.YwCb_VFRzceJwEs3jboGB70tWIyxBfv5hD5fp.EBu6C7SssnqBe.kM0u6ysl_hGW5MKnVGsk.R0JKo_amAFNss8; path=/; expires=Wed, 18-Jun-25 16:43:49 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=_cBxjRu6pulGDr4Unqc_nfzj2SzitW6b8.ZO8YYHkOA-1750263229018-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_ab4c6c83a2553248f1fcf9284c8c643f' }, request_id: 'req_ab4c6c83a2553248f1fcf9284c8c643f', 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': '951c137cb921d6f8-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Wed, 18 Jun 2025 16:13:48 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=lecXpq6FY0zKIWBJJJXENKfreLA5Nmg5S8eyxEZJ3Cg-1750263228-1.0.1.1-Bn8sZCj2qflPdNUFQ9_opcJ.UAhZRrFN6vL2zwDJqwdx1PnCT2eCjbE46DSxWRpkBHm8o6bRCB3ks1NBtbZTlFRIkVx_jSlA25e62cwCm70; path=/; expires=Wed, 18-Jun-25 16:43:48 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=M6FCuN.NfaMt3gZKlNc1sBRR.ldZjtJ1GQ01Ysz5O0k-1750263228980-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_81cec6b7749f6bca81ef66f6eb4eae93' }, request_id: 'req_81cec6b7749f6bca81ef66f6eb4eae93', 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 }
|