Pato
Pato
CDCloudflare Developers
Created by Pato on 1/19/2024 in #workers-help
Wrangler.toml Configuration Headache during Branch Merge
Hey! I'm having a bit of a struggle with my GitHub workflow, specifically regarding my wrangler.toml file. In my repository, I need this file to be different when merging changes from my dev branch to my main branch. However, every time I attempt to merge, it seems to create a mess. Has anyone faced a similar issue or can provide some guidance on how to handle this situation effectively? I'd really appreciate your insights and solutions!
6 replies
CDCloudflare Developers
Created by Pato on 10/30/2023 in #workers-help
Supabase error
Hey! I'm encountering an issue and I thought it would be best to seek your insights. I've been successfully fetching data from my Supabase table, but recently I encountered a Cloudflare error with a Ray ID: 81e641df8e9d21b4. The result of my data fetch operation is returning null, also my kv storages are not working. I've carefully reviewed my code, and it appears to be in order. It seems like there might be an issue either with the Supabase server or Cloudflare. Is anyone else facing a similar situation, or does anyone have suggestions on how to address this issue? Your guidance would be greatly appreciated. Thank you for your assistance.
2 replies
CDCloudflare Developers
Created by Pato on 8/3/2023 in #workers-help
Help: Sending emails to multiple users
Hey! I'm working on a project using Cloudflare Workers to automatically send monthly account statements to our users, keeping them updated on their activities within our platform. However, I've hit a bit of a roadblock, and I could really use some help Objective: To automatically send an account statement to each user every month, summarizing their activities on our platform. Requirements: The function should run automatically on a monthly basis without any manual intervention (im using cron triggers). It should be able to access user data securely to generate personalized account statements for each user( im using R2). The Problem I'm Facing: During the implementation, I'm encountering an issue where the Cloudflare Workers server runs out of memory resources before the task can be completed. What i mean by this is that the worker runs out of memory before all the mails are sent What I've Tried So Far: I've optimized the code to make it as efficient as possible. I've reviewed my data processing to minimize any unnecessary memory consumption. Although i think the problem might be because the numbers of users and i need to run a couple of calculations for each of them
4 replies
CDCloudflare Developers
Created by Pato on 7/26/2023 in #workers-help
Help Needed: Cloudflare Workers Memory Issue for Monthly Account Statements
Hey! I'm working on a project using Cloudflare Workers to automatically send monthly account statements to our users, keeping them updated on their activities within our platform. However, I've hit a bit of a roadblock, and I could really use some help Objective: To automatically send an account statement to each user every month, summarizing their activities on our platform. Requirements: - The function should run automatically on a monthly basis without any manual intervention (im using cron triggers). - It should be able to access user data securely to generate personalized account statements for each user( im using R2). The Problem I'm Facing: During the implementation, I'm encountering an issue where the Cloudflare Workers server runs out of memory resources before the task can be completed. What i mean by this is that the worker runs out of memory before all the mails are sent What I've Tried So Far: - I've optimized the code to make it as efficient as possible. - I've reviewed my data processing to minimize any unnecessary memory consumption. Although i think the problem might be because the numbers of users and i need to run a couple of calculations for each of them
2 replies
CDCloudflare Developers
Created by Pato on 6/20/2023 in #workers-help
Redundancy in Cloudflare Workers and Implementing a Backup Server
Hey! I hope you all are doing well! I need a little bit of help or guidance regarding an issue that I’ve been facing with Cloudflare Workers. Over the past couple of weeks, I have noticed that there's been a redundancy issue with Cloudflare Workers. The service has been down multiple times, which was very unexpected. The downtime has adversely affected my application, and I am concerned about the reliability of the service. Has anyone else experienced this issue recently? On the other hand, I am looking for ways to implement a backup server that could handle the traffic when the Cloudflare Workers service is down. My goal is to have an automatic fallback mechanism to ensure that my application remains functional and accessible during such downtime. Thanks!
10 replies
CDCloudflare Developers
Created by Pato on 4/10/2023 in #workers-help
Can a VPN be added to Cloudflare Workers for API security?
Hey! I am currently using Cloudflare Workers for my API but I am concerned about the security of my data. While Cloudflare Workers offer features like HTTPS encryption, I am wondering if it's possible to add a VPN to Cloudflare Workers to add an extra layer of security to my API. Has anyone attempted this before? If so, what was your experience like and how did you go about implementing this solution? If it's not possible to use a VPN with Cloudflare Workers, what other options do I have to improve the security of my API? I would greatly appreciate any advice or suggestions that you may have on this topic. Thank you in advance for your help!
12 replies
CDCloudflare Developers
Created by Pato on 3/6/2023 in #workers-help
How to read a .pem file in a worker
Hey, I was wondering if its possible to read a .pem file in a worker, thanks!
17 replies
CDCloudflare Developers
Created by Pato on 3/6/2023 in #workers-help
Can't make fetch() requests to custom HTTPS port with Cloudflare Workers
Hey, I'm running into an issue with my Cloudflare Workers where I can't seem to make fetch() requests to a custom HTTPS port (not 80 or 443) on a remote server. Every time I try, I get an error message saying "connection was reset" and I can't seem to figure out what's going wrong. I've searched through the Cloudflare documentation and it looks like their network only supports HTTPS traffic on standard ports, so I'm not sure if there's anything I can do to get around this limitation. Has anyone else encountered this issue? Any tips or workarounds? I've considered using HTTP instead of HTTPS, but I'm worried about the security implications of that. I've also thought about switching hosting providers, but I really like the convenience of Cloudflare Workers. Any advice or suggestions would be greatly appreciated! Thanks in advance.
29 replies
CDCloudflare Developers
Created by Pato on 2/27/2023 in #workers-help
Weird Bug
Hey! I'm running into a thing that I think is a bug. When a I run a request to my worker hosted in CF my service works correctly but when I try to do it in localhost I get the following error and in html
<html>

<head>
<title>400 Bad Request</title>
</head>

<body>
<center>
<h1>400 Bad Request</h1>
</center>
<hr>
<center>cloudflare</center>
</body>

</html>
<html>

<head>
<title>400 Bad Request</title>
</head>

<body>
<center>
<h1>400 Bad Request</h1>
</center>
<hr>
<center>cloudflare</center>
</body>

</html>
13 replies
CDCloudflare Developers
Created by Pato on 2/7/2023 in #workers-help
Upload and save pdfs to a R2 bucket
Hey! I'm developing an iOS app that needs to upload PDF files to a server. I was thinking of using Cloudflare Workers as an intermediate step before uploading the files to an R2 bucket. What would be the best way to achieve this? What are the most efficient and secure methods for uploading PDFs from an iOS app to a Cloudflare Worker and then to an R2 bucket? Thanks in advance!
3 replies
CDCloudflare Developers
Created by Pato on 1/23/2023 in #workers-help
Effective PDF Download and Distribution with Cloudflare Workers
Hey, I am trying to figure out the best way to download a PDF from an external API, save it to an R2 instance, and then send it to all of my users. I am currently using Cloudflare Workers to handle this process, but I'm running into issues with the worker running out of processing time. Would switching to an unbound worker mode help with this issue? Are there any other suggestions or tips for handling this process effectively and efficiently? Any input would be greatly appreciated. Thank you!
15 replies