Tim Fish
Tim Fish
Explore posts from servers
DDeno
Created by Tim Fish on 10/8/2023 in #help
Sentry - monkey patching globals?
I'm working with Sentry to release a Deno SDK. To capture breadcrumbs and tracing for console/fetch etc, Sentry monkey patch these globals. Last time I tried, shortly after v1 this worked but trying with the latest release, this no longer works. Testing further I can monkey patch globals but it seems to be isolated to the module/file where I do the patching. Is this expected behaviour? Have there been changes to restrict monkey patching globals?
6 replies
CDCloudflare Developers
Created by Tim Fish on 8/31/2023 in #workers-help
Browser Rendering limits
No description
3 replies
CDCloudflare Developers
Created by Tim Fish on 8/2/2023 in #workers-help
wranger `request.url` is custom domain even when running locally
When testing my worker locally the request url used to be localhost:port. A few days ago I configured a custom domain and then today the url when run locally is now the custom domain. what change has caused this? How do it get it to be the correct dev url?
1 replies
CDCloudflare Developers
Created by Tim Fish on 7/29/2023 in #workers-help
Can I use the same durable object class in more than one worker?
If so, how would this work in wrangler.toml?
4 replies
CDCloudflare Developers
Created by Tim Fish on 7/21/2023 in #workers-help
Worker timeout when pass-through streaming
I'm using a worker to pass-through stream Github releases that are in a private repo that needs authorisation. This is working fine unless on a slow connection where the download time exceeds the worker limit of 30 seconds. Is there a way to do this with workers?
const url = `https://api.github.com/repos/${org}/${repo}/releases/assets/${id}`;

let response = await fetch(url, {
headers: {
Authorization: `token ${env.GITHUB_TOKEN}`,
accept: "application/octet-stream",
"User-Agent": "Cloudflare Workers",
},
});

if (response.body) {
return new Response(response.body);
}
const url = `https://api.github.com/repos/${org}/${repo}/releases/assets/${id}`;

let response = await fetch(url, {
headers: {
Authorization: `token ${env.GITHUB_TOKEN}`,
accept: "application/octet-stream",
"User-Agent": "Cloudflare Workers",
},
});

if (response.body) {
return new Response(response.body);
}
2 replies
CDCloudflare Developers
Created by Tim Fish on 6/19/2023 in #workers-help
"Worker exceeded CPU time limit" using unbounded plan
I was expecting unbounded to have no cpu time limit but I'm getting errors even using the unbounded plan...
7 replies
DDeno
Created by Tim Fish on 12/30/2022 in #help
Is there any way to trace where permissions prompts are coming from?
I'm running some code through Deno and its prompting for some permissions. How can I find out where these are coming form?
13 replies