question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"The first argument must be one of type string or Buffer. Received type object", after clean wrangler generate of Scala worker

See original GitHub issue

Hi, thanks for making this.

I tried this out after generating a clean wrangler project. After wrangler generate foo, I use miniflare index.js and navigating to the url in the browser I see:

The first argument must be one of type string or Buffer. Received type object Screen Shot 2021-09-24 at 2 58 53 PM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
asimpletunecommented, Sep 24, 2021

That did the trick. I guess the older APIs provided by the older version of node had different type expectations. Thanks!

0reactions
asimpletunecommented, Sep 24, 2021

Sure, I’ll give that a shot. Thanks for the fast response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: The first argument must be one of type string, Buffer ...
TypeError : The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object in cryptoJS.
Read more >
first argument must be a string of Buffer · Issue #1904 - GitHub
Hi, I was running some code and got this error message: _http_outgoing.js:441 throw new TypeError('first argument must be a string or ...
Read more >
Wrangler commands - Cloudflare Workers docs
Wrangler offers a number of commands to manage your Cloudflare Workers. ... types - Generate types from bindings and module rules in ...
Read more >
Wrangler: Wrangle Your Cloudflare Workers - Morioh
Wrangler : wrangle your Cloudflare Workers. wrangler is a CLI tool ... wrangler.toml file and runs the build steps associated with the "type"...
Read more >
Apache Spark Implementation on IBM z/OS
other IBM Redbooks publications in one of the following ways: ... A key difference between the Spark environment and other types of client/server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found