tony
Explore posts from serversexecutionCtx.waitUntil on write service
I have a worker that I want to call an external api on, but I want to return a response without awaiting the the external api call. (the external api call is to just save time writing to the db on another service).
however when I am testing it local and it is not hitting the service
I am using hono
https://hono.dev/api/context#executionctx
the worker is on localhost:8787 and the write service for the impression is on localhost:3000 I am able to create the impression successfully calling it directly but the waitUntil is not hitting localhost:3000 when calling the localhost:8787 endpoint
1 replies
CDCloudflare Developers
•Created by tony on 4/30/2024 in #workers-help
executionCtx.waitUntil on write service
I have a worker that I want to call an external api on, but I want to return a response without awaiting the the external api call. (the external api call is to just save time writing to the db on another service).
however when I am testing it local and it is not hitting the service
I am using hono
https://hono.dev/api/context#executionctx
the worker is on localhost:8787 and the write service for the impression is on localhost:3000 I am able to create the impression successfully calling it directly but the waitUntil is not hitting localhost:3000 when calling the localhost:8787 endpoint
19 replies
CDCloudflare Developers
•Created by tony on 3/25/2024 in #workers-help
Cannot change Custom Hostname proxy-fallback ip
I have a custom hostname trk.northwavestudio.com that has active status on both hostname status and certificate status. however I want to point the Custom Hostnames to a different worker (jump.example.com). I have changed the proxy-fallback A record to the ip of my jump.example.com worker however these Custom Hostnames are still being pointed to the api.example.com worker, I am able to observe logs when making calls to trk.northwavestudio.com to the api.example.com worker.
1 replies
CDCloudflare Developers
•Created by tony on 3/25/2024 in #general-help
Custom Hostname proxy-fallback not calling correct worker.
I have a custom hostname trk.northwavestudio.com that has active status on both hostname status and certificate status. however I want to point the Custom Hostnames to a different worker (jump.example.com). I have changed the proxy-fallback A record to the ip of my jump.example.com worker however these Custom Hostnames are still being pointed to the api.example.com worker, I am able to observe logs when making calls to trk.northwavestudio.com to the api.example.com worker.
2 replies
CDCloudflare Developers
•Created by tony on 2/1/2024 in #general-help
Create Custom Hostname response does not match the documentation
When sending a post request to the create endpoint it seems like the validation cert is not being returned in the response for the post hostname api. I would expect response.data.ssl.validation_records
https://developers.cloudflare.com/api/operations/custom-hostname-for-a-zone-create-custom-hostname
But the response is:
5 replies
CDCloudflare Developers
•Created by tony on 1/29/2023 in #workers-help
Prisma in module worker
Anyone have an example of using '@Prisma/client/edge' in a cloudflare module worker? I am getting:
when justing doing a simple:
console log on the DATABASE_URL showing correct and I am able to connect to it fine with a nestjs repo
1 replies
CDCloudflare Developers
•Created by tony on 1/16/2023 in #workers-help
CORS error with worker to localhost:3000
error
worker
client
responds in postman
and when I spin up wrangler dev
but when trying to directly call https://users-worker.data-well.workers.dev/users from localhost:3000 it shows a cors error 😦
3 replies
CDCloudflare Developers
•Created by tony on 1/15/2023 in #pages-help
worker error when using Building Nitro Server (preset: cloudflare_pages) and Prisma
adlab.pages.dev
build log is attached
the nitro server builds
30 replies