jman
Explore posts from serversCDCloudflare Developers
•Created by jman on 1/16/2025 in #workers-help
sql.prepare is not a function in Durable Objects SQL
Thank's for clarifying! :MeowHeartCloudflare:
4 replies
CDCloudflare Developers
•Created by jman on 1/16/2025 in #workers-help
sql.prepare is not a function in Durable Objects SQL
Ok, they share Typescript typings so I was confused.
I saw that page, but I didn't see it mention that the two were actually different. I assumed that page was just a summary of the most common api's, and I should refer to d1 docs.
4 replies
CDCloudflare Developers
•Created by jman on 12/29/2024 in #workers-help
Vitest `Failed to pop isolated storage stack frame` when error thrown
Created issue here: https://github.com/cloudflare/workers-sdk/issues/7707
8 replies
CDCloudflare Developers
•Created by jman on 12/29/2024 in #workers-help
Vitest `Failed to pop isolated storage stack frame` when error thrown
No, the same behavior persists in the above example if the function name is changed to anything else.
myCustomFunc
for example.8 replies
CDCloudflare Developers
•Created by jman on 4/14/2024 in #workers-discussions
Are there example repos of Durable
I found it pretty fiddly to get working, but I added details in the threads below that message, and some following issues in later messages:
https://discord.com/channels/595317990191398933/779390076219686943/1229204177469702174
https://discord.com/channels/595317990191398933/779390076219686943/1229228850701930539
3 replies
CDCloudflare Developers
•Created by jman on 4/15/2024 in #workers-discussions
Ok, new problems. When running tests
Ok, workaround found..
1. The methods have to be called in
runInDurableObject
.
2. But this doesn't correctly infer the type of the object so you have to manually assert it. (inst: Manager) => ...
3. But, manually asserting it fails to be properly typed if the durable object doesn't have a fetch handler, so just add a blank fetch handler and you're good2 replies
CDCloudflare Developers
•Created by jman on 4/15/2024 in #workers-discussions
Ok, new problems. When running tests
2 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
I did exactly the same lol
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
Thanks @kian !
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
WOAH it works 🙂
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
Oh that message only includes wrangler
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
No I was using the prerelease in the github actions bot message
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
Installing the PR is still causing the same errors, so doesn't look like it's totally resolved yet
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
Darn, that's a shame... Thanks for finding that
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-discussions
Try adding the `rpc` compatibility flag
Hmm, it's a large error so I've attached it. I don't see much substance in it though:
Vitest caught 1 unhandled error during the test run.
--
The Workers runtime failed to start. There is likely additional logging output above.
--
{ code: 'ERR_RUNTIME_FAILURE' }
17 replies