rodrigo
Explore posts from serversCDCloudflare Developers
•Created by rodrigo on 1/7/2024 in #workers-help
Custom Markdoc's components work on local with wrangler but fail online with Pages
I've create a custom Markdoc components following this guide:
https://markdoc.dev/docs/examples/react
In local, the component (Counter) works ok, and when consologing you get this:
But on deploying to Pages I get an error
and the console:
So it's like the render is working locally and not online. I've spotted the 'rendering error' in the
So it's like the render is working locally and not online. I've spotted the 'rendering error' in the
transform
method:
`
What else can I do to debug it? Is the bug in Worker backend?? (because Markdoc works ok locally)2 replies
CDCloudflare Developers
•Created by rodrigo on 10/2/2023 in #workers-help
Stripe with Remix 2.0
I'm using Stripe with Remix on CF Pages, using this configuration:
`
I've tried many ways but I always get this error:
Is this related with ESM config in Remix 2.0. ? I thught Stripe was totally compatible with Workers...
9 replies
CDCloudflare Developers
•Created by rodrigo on 7/25/2023 in #general-help
Call Azure function from a Worker
I need to call an Azure function (to run an script on NodeJS) from a CF Worker (Remix on Cf Pages). Is it possible? How can I do that?
7 replies
CDCloudflare Developers
•Created by rodrigo on 4/26/2023 in #pages-help
websocket abruptly closes
I'm using MS cognitive services with CloudFlare Pages and the websocket connection closes before covnerting text to audio and generting the file:
I got this error:
My understanding is that
WaitUntil
kept the task running in the background until completion. Why then does the ws end before completion? How can I keep running in the background? (I'm in Unbound mode)13 replies
CDCloudflare Developers
•Created by rodrigo on 3/16/2023 in #workers-help
Microsoft Cognitive Services
I've opened an issue with Microsoft to check if MS cognitive services SDK works with Workers.
https://github.com/microsoft/cognitive-services-speech-sdk-js/issues/645
They've fixed/remove code that was giving me the
TypeError: globalThis.XMLHttpRequest is not a constructor
error.
But now it seems the sdk cannot connect to Azure's wss server.
I'm not sure why but I've read here that wrangler doesn't work with wss but only with ws. Is that right?2 replies
CDCloudflare Developers
•Created by rodrigo on 2/8/2023 in #workers-help
Multiple reads with flareutils `list`
I'm trying to launch several flareutil
list
in parallel
I'm getting this error because I understand within list
it's writing a Response:
TypeError: Body has already been used. It can only be used once. Use tee() first if you need to read it twice
What can I do to launch several list
in parallel?2 replies
CDCloudflare Developers
•Created by rodrigo on 2/5/2023 in #pages-help
how to debug a function
I'm creating a webhook in Supabase to update a CF Worker KV.
The point is that for every post request I can get the payload data but I cannot get any more info apart that post request is cancelled
I mean, I create
conselo.log
but this info doesn't show up in the request Real-time Logs.
How can I get debug info in the log?18 replies