Mike Keller
Mike Keller
CDCloudflare Developers
Created by Mike Keller on 1/8/2025 in #workers-help
Worker to Worker request never completes.
HELPPPP
8 replies
CDCloudflare Developers
Created by Mike Keller on 1/8/2025 in #workers-help
Worker to Worker request never completes.
Bruh.
8 replies
CDCloudflare Developers
Created by sharqwy on 1/6/2025 in #workers-observability
I'm having trouble integrating Sentry
It seems that they don't quite care unless you pay them for support- 😭
9 replies
CDCloudflare Developers
Created by Mike Keller on 1/8/2025 in #workers-help
Worker to Worker request never completes.
:NotLikeThis: Please help...
8 replies
CDCloudflare Developers
Created by Mike Keller on 1/8/2025 in #workers-help
Worker to Worker request never completes.
Uhm, any idea? 😭
8 replies
CDCloudflare Developers
Created by Mike Keller on 1/8/2025 in #workers-help
Worker to Worker request never completes.
The request does seem to work as queue is sent and proccessed. But I never get a reply on the 1st worker.
8 replies
CDCloudflare Developers
Created by Mike Keller on 1/8/2025 in #workers-help
Worker to Worker request never completes.
On 1 worker I'm using Next.js in Workers based of: https://developers.cloudflare.com/workers/frameworks/framework-guides/nextjs/ (Code is too big to send here) But for the fetch I'm using:
await (await getCloudflareContext()).env.API.fetch(Request);
//then
await response.json();
await (await getCloudflareContext()).env.API.fetch(Request);
//then
await response.json();
(Yes I added the binding) Small example of the one that receives it:
export default {
async fetch(request, env, ctx) {
await env.D1.prepare("INSERT INTO jobs (id) VALUES (?1)").bind("123").run();

ctx.waitUntil(
await env.QUEUE.send(
{
id: "123",
},
{ contentType: "json" }
)
);

return new Response(
JSON.stringify({
id: "123",
}),
{
status: 200,
headers: new Headers({
"Content-Type": "application/json",
}),
}
);
},
};
export default {
async fetch(request, env, ctx) {
await env.D1.prepare("INSERT INTO jobs (id) VALUES (?1)").bind("123").run();

ctx.waitUntil(
await env.QUEUE.send(
{
id: "123",
},
{ contentType: "json" }
)
);

return new Response(
JSON.stringify({
id: "123",
}),
{
status: 200,
headers: new Headers({
"Content-Type": "application/json",
}),
}
);
},
};
8 replies
CDCloudflare Developers
Created by sharqwy on 1/6/2025 in #workers-observability
I'm having trouble integrating Sentry
I also have the same problem. (But never connected any previous org)
9 replies