Questions tagged [wrangler]
15 questions
1
vote
1 answer
How to bundle up NodeJS with Javascript for wrangler
The issue:
I want to build a Cloudflare worker which uses NodeJS dependencies. However, due to issues with Wrangler, I cannot deploy it there using the command wrangler deploy.
The error:
X [ERROR] Could not resolve "async_hooks"
…

Sparky 99
- 11
- 1
1
vote
1 answer
Data Fusion for xml-to-json transformation: "+ExitOnOutOfMemoryError" and "exited with a non-zero exit code 3. Error file: prelaunch.err"
When transforming an xml file to json, the Data Fusion pipeline, configured in Autoscaling mode up to 84 cores, stops indicating an error.
Can anybody help me to make it work?
The 100-pages Raw log file seems indicating that possible errors…

Mauro Di Pasquale
- 13
- 2
1
vote
0 answers
How to provide usage_model at wrangler.toml for cloudflare
I am trying to change usage model at the Cloudflare worker from bundled to unbound, due to exceeded compute performance capacity and requiring more even to startup my nodejs(Nitrojs, Nuxt3 and RavenDB client) app.
CI message:
Your Worker failed…

Sergey Bezugliy
- 580
- 7
- 23
1
vote
0 answers
✘ [ERROR] Could not resolve "async_hooks"
Gettiing eroor, asking to add "platform: 'node'". Can someone help me where to add it.
project is > https://github.com/dicebear/api
$wrangler dev …

Nishith P Shetty
- 23
- 5
1
vote
0 answers
Cannot use import statement outside a module when using wrangler v2
I'm new to using cloudflare and wrangler. I've a project that I've been working on, and I'm now trying to deploy it using wrangler publish, but I keep running into issues. My product is coded in node.js, and I'm using version 2 of wrangler. When I…

Gigi101
- 139
- 1
- 11
1
vote
1 answer
Wrangler complaining about default module export
When I run
$ node_modules/.bin/wrangler publish --keep-vars --dry-run
I see the following warning:
▲ [WARNING] The entrypoint index.js has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building…

cov
- 146
- 7
1
vote
0 answers
Wrangler Pages file not found when serving a Qwik website
Wrangler version: 8.19.1
OS: Ubuntu 22.04.1 LTS
Bug
In my Qwik pages project, when running npm run build && npm run serve, some files failed to be found:
Full DevTools console output
127.0.0.1/:1
GET http://127.0.0.1:8788/build/q-8b482804.css…

Joshua Bruylant
- 11
- 1
1
vote
1 answer
How to import Cloudflare KV Namespace Variable?
I'm using KV namespace defined in cargo.toml by adding to it the lines
kv_namespaces = [
{ binding = "SITE_DATA", id = "" }
]
When I try to import the SITE_DATA variable in my Worker script as shown, and I run wrangler publish or…

Athena Wisdom
- 6,101
- 9
- 36
- 60
0
votes
0 answers
ERROR: Could not resolve "worker_threads" during wrangler deploy to Cloudflare node.js application
During wrangler deploy to Cloudflare node.js application, I get an error
ERROR: Could not resolve "worker_threads"
build/worker.js:42155:29:
42155 │ var { Worker } = require("worker_threads");
My wrangler.toml file
name = "my-worker"
main =…

MTN
- 101
- 2
- 5
0
votes
0 answers
AWSWrangler dataframe conversion to spark DF
I'm trying to convert a dataframe created by awswrangler to spark DF though not finding any resources? Please help
Tried using to_spark_dataframe
Code:
wr.s3.to_csv(df,"s3://bucket/out/aflogs.csv")
#Create PySpark DataFrame from Pandas
raw_df =…

Kannan G
- 1
- 1
0
votes
2 answers
Cloud Data Fusion: Numeric datatype into BigQuery
I'm running a Data Fusion pipeline with Wrangler transformations and I want to store a value as Numeric in BigQuery for some precise arithmetic calculations, but Wrangler doesn't let me transform a FLOAT value to NUMERIC.
I've tried with implicit…

Ricardo Tejada
- 103
- 9
0
votes
1 answer
How to clone an existing Cloudflare Worker
I cannot find a quick way to clone a Worker already deployed (such those created from the online dashboard). Is there a command similar to git clone, to obtain a local copy?
There are no references in the docs.

pierpy
- 897
- 3
- 14
- 18
0
votes
0 answers
AWS wrangler python library throws Unknown encoding type while reading a parquet file with column with type Boolean
I wrote an AWS lambda function which that reads a parquet file which has 2 columns whose type is boolean.
When I exclude those two boolean columns named: "iscritical" and "iscyclic" from the input columns list the wr.s3.read_parquet() operation…
0
votes
0 answers
Cloudflare worker publish failing with 10019 error
We are trying to deploy a Cloudflare worker using wrangler. While trying to publish this to a new zone, we are getting below error
2022-09-16 05:24:16.850 ⠤ Configuring routes...
2022-09-16 05:24:16.853 Successfully published your script…

Seeker
- 2,405
- 5
- 46
- 80
0
votes
0 answers
Wrangler local development with Cloudflare Pages
I'm playing around with the new Cloudflare Functions functionality, specifically the file based routing. However I've found it tiresome to have to deploy and debug my functions in the cloud
I found this, which seems to say I can use Wrangler to…

Ucinorn
- 648
- 7
- 21