Callum
Explore posts from serversCDCloudflare Developers
•Created by Callum on 6/12/2024 in #workers-help
Error when using S3 SDK: ReferenceError: FileReader is not defined
As per the title. I am getting a reference error when performing a DeleteCommand using the s3 client. The actual request is fine, but the client response has a body of type Blob; size 0. I think the client then throws an error as it tries to parse the blob with the FileReader api which doesn't exist in workerd?
Has anyone else encountered a similar issue to this? I can work around it by just catching the error but that feels pretty weird.
1 replies
CDCloudflare Developers
•Created by Callum on 4/4/2024 in #pages-help
Service Binding not appearing in worker dashboard
As per the title, I am having some trouble setting up a service worker from my pages app.
In the Pages app cloudflare dashboard I can see the binding has been setup, however when I go to triggers in the worker dashboard, the bindings are empty:
No other Services bind to markdown-worker. To invoke this from another Service, add a Service Binding from that Service's Settings > Variables pageIs there any advice here? since the connection was made through the dashboard I am not sure what else to do to create the connection.
4 replies
Prisma not connecting to DB once deployed
Hey,
I have an app and db within a project. The app builds and runs fine on my machine, using the DATABASE_URL provided by railway no problem.
Once I deploy to railway, the build works fine but I get a prisma error:
PrismaClientInitializationError:
Invalid
prisma.game.findMany()
invocation:
Can't reach database server at containers-us-west-95.railway.app
:6659
Please make sure your database server is running at containers-us-west-95.railway.app
:6659
.
at Hr.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:7272)
at Hr.handleAndLogRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6388)
at Hr.request (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6108)
at async l (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:126:10298) {
clientVersion: '5.1.0',
errorCode: undefined
}
Like I say its running fine as I can connect to it locally (and from another app in the project).
Any help would be appreciated.20 replies