DanTheGoodman
DanTheGoodman
Explore posts from servers
CDCloudflare Developers
Created by DanTheGoodman on 7/10/2024 in #general-help
CDN not respecting max-age
No description
12 replies
CDCloudflare Developers
Created by DanTheGoodman on 5/23/2024 in #general-help
Cache obscenely slow, even after purges and disabling smart topology
We have a domain assets.tangia.co that is cached with CF, and over the last 2 weeks it has started griding to a halt. <1MB images take 20s+ to load from gigabit connections, and we've purged the cache many times. It's directly hooked up to S3 so we know it's not the origin being slow
41 replies
CDCloudflare Developers
Created by DanTheGoodman on 4/23/2024 in #pages-help
Does git LFS work on pages?
When it auto builds from the git repo, would it download a 20MB LFS file?
1 replies
CDCloudflare Developers
Created by DanTheGoodman on 3/6/2024 in #pages-help
View bandwidth usage by pages website?
Is there any way to see how much bandwidth a pages project has used?
5 replies
CDCloudflare Developers
Created by DanTheGoodman on 1/7/2024 in #general-help
cloudflared tunnel not creating DNS records
I'm starting it locally on my mac with cloudflared tunnel --hostname mbp.danthegoodman.com --url localhost:8080 --name mbp-dan and when I try to navigate to that I'm getting DNS resolution errors (nothing there). Is there something I need to enable on the domain in the cloudflare dashboard? I'm logged in properly.
4 replies
CDCloudflare Developers
Created by DanTheGoodman on 11/17/2023 in #pages-help
Custom domain add not recognizing that subdomain is already on cloudflare
No description
1 replies
CDCloudflare Developers
Created by DanTheGoodman on 10/3/2023 in #workers-help
Reading in local file content?
I am using satori to generate png opengraph images and need to load a local font file for use. I just need the file as a buffer but i would like to read it into a var, how can I do this with workers?
1 replies
CDCloudflare Developers
Created by DanTheGoodman on 6/17/2023 in #general-help
DNS records "this hostname is not covered by a certificate"
29 replies
CDCloudflare Developers
Created by DanTheGoodman on 6/13/2023 in #general-help
Vultr no longer part of bandwidth alliance
20 replies
CDCloudflare Developers
Created by DanTheGoodman on 5/12/2023 in #pages-help
`This hostname is not covered by a certificate` only on pages CNAMES
71 replies
CDCloudflare Developers
Created by DanTheGoodman on 2/23/2023 in #workers-help
Logpush no longer pushing logs to HTTP destination
I've got a logpush job that pushes to another worker. I've tried with and without a filter on the scriptname (so this worker doesn't recursively push logs). This worker simply pushes logs to axiom because of the test request when making the logpush job. this was previously working, but logs have stopped shipping entirely. I've tried creating it with and without filters and I still get the test event to check if the endpoint works (which is another broken request on it's own), but there are no logs shipping to this endpoint. I've waited over 1 hour after sending test logs to another worker and they are not shipping.
4 replies
CDCloudflare Developers
Created by DanTheGoodman on 2/17/2023 in #workers-help
Workers not decoding gzip request automatically
Getting the .text() of
Z�&�;��2����9s#Ò/y�H�H�����Cp_΃;05��J#c�E�G9�M*�a�zJ%,�[t���)<�>��Ņ��^����GXLgGC㩡�X��a��-ˍz[/aqR���R�<
�:m��1]��c�>�(�z%��bZ���S�
����
�Oǵ�v�ϰL�ϵq����n���������y=
Z�&�;��2����9s#Ò/y�H�H�����Cp_΃;05��J#c�E�G9�M*�a�zJ%,�[t���)<�>��Ņ��^����GXLgGC㩡�X��a��-ˍz[/aqR���R�<
�:m��1]��c�>�(�z%��bZ���S�
����
�Oǵ�v�ϰL�ϵq����n���������y=
from a logpush job pointing to a worker
9 replies
CDCloudflare Developers
Created by DanTheGoodman on 2/17/2023 in #workers-help
Error: "stream does not start with a json array" when making logpush job, incorrect error code?
I am trying to make a logpush job that sends an array JSON to axiom. I am getting an error:
{"errors":[{"code":1002,"message":"error validating destination: error writing object: error uploading to https: 400 {\"message\":\"stream does not start with a json array\"}"}],"messages":[],"result":null,"success":false}
{"errors":[{"code":1002,"message":"error validating destination: error writing object: error uploading to https: 400 {\"message\":\"stream does not start with a json array\"}"}],"messages":[],"result":null,"success":false}
looking up code 1002 I see that would mean Error 1002: DNS points to Prohibited IP according to https://support.cloudflare.com/hc/en-us/articles/360029779472-Troubleshooting-Cloudflare-1XXX-errors. Is this the case or should I go with the error message? My request looks like this:
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/logpush/jobs' \
-H 'X-Auth-Key: <API_KEY>' \
-H 'X-Auth-Email: <EMAIL>' \
-H 'Content-Type: application/json' \
-d '{
"name": "workers-logpush",
"output_options": {
"field_names": ["ClientIP", "EdgeStartTimestamp", "RayID", "Event", "EventTimestampMs", "Outcome", "Exceptions", "Logs", "ScriptName"],
"sample_rate": 1.0,
"timestamp_format": "rfc3339",
"output_type": "ndjson",
"batch_prefix": "[",
"batch_suffix": "]",
"record_prefix": "{",
"record_suffix": "}",
"record_delimiter": ","
},
"destination_conf": "https://cloud.axiom.co/api/v1/datasets/$DATASET_NAME/ingest?header_Authorization=Bearer%20$BEARER_TOKEN&header_content-type=application%2Fjson",
"dataset": "workers_trace_events",
"enabled": true
}'
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/logpush/jobs' \
-H 'X-Auth-Key: <API_KEY>' \
-H 'X-Auth-Email: <EMAIL>' \
-H 'Content-Type: application/json' \
-d '{
"name": "workers-logpush",
"output_options": {
"field_names": ["ClientIP", "EdgeStartTimestamp", "RayID", "Event", "EventTimestampMs", "Outcome", "Exceptions", "Logs", "ScriptName"],
"sample_rate": 1.0,
"timestamp_format": "rfc3339",
"output_type": "ndjson",
"batch_prefix": "[",
"batch_suffix": "]",
"record_prefix": "{",
"record_suffix": "}",
"record_delimiter": ","
},
"destination_conf": "https://cloud.axiom.co/api/v1/datasets/$DATASET_NAME/ingest?header_Authorization=Bearer%20$BEARER_TOKEN&header_content-type=application%2Fjson",
"dataset": "workers_trace_events",
"enabled": true
}'
It seems like maybe that error message is a middle server not interpreting the body correctly and forwarding it, and maybe the code is actually correct?
6 replies
CDCloudflare Developers
Created by DanTheGoodman on 2/16/2023 in #workers-help
getting error code: 1042 when curling a worker from laptop
This error means that a worker cannot fetch another worker from the same zone, but I am fetching from my laptop using curl. I also don't even see the request showing in the logs of the worker, and I do have workers talking to each other like this...
2 replies
CDCloudflare Developers
Created by DanTheGoodman on 2/16/2023 in #workers-help
1042Worker tried to fetch from another Worker on the same zone, which is unsupported.... why?
Why are workers unable to communicate with each other over the internet? Seems like a strange limitation
4 replies
CDCloudflare Developers
Created by DanTheGoodman on 2/1/2023 in #workers-help
Delete requests cause 400 without reaching worker
When using a DELETE request, I am getting 400 responses and the worker is not handling the request. GET, POST, and PUT all work fine. I am using itty-router https://github.com/kwhitley/itty-router. I am also using wrangler 2.8.1 and running it with hosted dev mode. Example response:
HTTP/1.1 400 Bad Request
server: cloudflare
date: Wed, 01 Feb 2023 02:48:54 GMT
content-type: text/html
content-length: 155
cf-ray: -
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
HTTP/1.1 400 Bad Request
server: cloudflare
date: Wed, 01 Feb 2023 02:48:54 GMT
content-type: text/html
content-length: 155
cf-ray: -
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
I could not find anything online about issues with either workers or itty router with DELETE requests.
4 replies