Jay Bell
Jay Bell
PPrisma
Created by Jay Bell on 6/20/2024 in #help-and-questions
Unable to find table (not available) but it exists
Reproduced it in a fresh database. So we have an empty DraftItem record (existing db row, was a placeholder table for months). We are upserting those records to ensure they are completely filled in now (since the table is in use) So we are updating the DraftItem with some fields and then also upserting a nested 1:1 relation (Inventory). This is where it fails, if I just upsert that DraftItem and do not try and also upsert inventory it works, as soon as I try and upsert Inventory it does not work.
5 replies
PPrisma
Created by Jay Bell on 6/20/2024 in #help-and-questions
Unable to find table (not available) but it exists
So create and findMany work fine, upsert is failing. Trying to track down whats going on there.
5 replies
PPrisma
Created by Jay Bell on 6/20/2024 in #help-and-questions
Unable to find table (not available) but it exists
Hey Nurul, yes I have generated it, made sure to check that first. And when I pull I do get it yes.
5 replies
CDCloudflare Developers
Created by Jay Bell on 11/25/2023 in #cloudflare-ai
I am trying to call workers ai using
looks like according to that error account id is undefined so i guess they are not being read correctly
3 replies
CDCloudflare Developers
Created by Jay Bell on 11/25/2023 in #cloudflare-ai
I am trying to call workers ai using
✘ [ERROR] Error: Cloudflare LLM call failed with status code 404
at file:///Users/jaybell/WebstormProjects/chat-mtg/apps/urza/.wrangler/tmp/dev-Wu0sfs/worker.js:21281:23
at async RetryOperation._fn (file:///Users/jaybell/WebstormProjects/chat-mtg/apps/urza/.wrangler/tmp/dev-Wu0sfs/worker.js:2531:19) {
response: Response {
cf: undefined,
webSocket: null,
url: 'https://api.cloudflare.com/client/v4/accounts/undefined/ai/run/@cf/meta/llama-2-7b-chat-int8',
redirected: false,
ok: false,
headers: Headers(7) {
'cf-ray' => '82bda66f7c48137e-YVR',
'connection' => 'keep-alive',
'content-length' => '212',
'content-type' => 'application/json',
'date' => 'Sat, 25 Nov 2023 23:25:18 GMT',
'server' => 'cloudflare',
'set-cookie' => '__cfruid=c0301c9031f66fa1b36041c6283bd35b6b21326c-1700954718; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None',
[immutable]: true
},
statusText: 'Not found',
status: 404,
bodyUsed: false,
body: ReadableStream {
locked: false,
[state]: 'readable',
[supportsBYOB]: true,
[length]: 212n
}
},
attemptNumber: 1,
retriesLeft: 6
[mf:inf] GET / 500 Internal Server Error (88ms)
✘ [ERROR] Error: Cloudflare LLM call failed with status code 404
at file:///Users/jaybell/WebstormProjects/chat-mtg/apps/urza/.wrangler/tmp/dev-Wu0sfs/worker.js:21281:23
at async RetryOperation._fn (file:///Users/jaybell/WebstormProjects/chat-mtg/apps/urza/.wrangler/tmp/dev-Wu0sfs/worker.js:2531:19) {
response: Response {
cf: undefined,
webSocket: null,
url: 'https://api.cloudflare.com/client/v4/accounts/undefined/ai/run/@cf/meta/llama-2-7b-chat-int8',
redirected: false,
ok: false,
headers: Headers(7) {
'cf-ray' => '82bda66f7c48137e-YVR',
'connection' => 'keep-alive',
'content-length' => '212',
'content-type' => 'application/json',
'date' => 'Sat, 25 Nov 2023 23:25:18 GMT',
'server' => 'cloudflare',
'set-cookie' => '__cfruid=c0301c9031f66fa1b36041c6283bd35b6b21326c-1700954718; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None',
[immutable]: true
},
statusText: 'Not found',
status: 404,
bodyUsed: false,
body: ReadableStream {
locked: false,
[state]: 'readable',
[supportsBYOB]: true,
[length]: 212n
}
},
attemptNumber: 1,
retriesLeft: 6
[mf:inf] GET / 500 Internal Server Error (88ms)
3 replies
CDCloudflare Developers
Created by Jay Bell on 11/25/2023 in #cloudflare-ai
I am trying to call workers ai using
I have a .dev.vars file with my env variables in it. but again I cannot confirm they actually work since apparently logs do not show.
3 replies