Skip to content

[Workers] Invalid keyword in code example and tutorial code #2505

@kinduff

Description

@kinduff

Expected Behavior

https://developers.cloudflare.com/workers/tutorials/handle-form-submissions-with-airtable#submit-data-to-airtable

Actual Behavior

Example code has a typo, it should not include the keyword new for Response.redirect. This raises an exception when following the tutorial.

Section that requires update

This line

Should change like so:

-  return new Response.redirect(FORM_URL)
+  return Response.redirect(FORM_URL)

Additional information

Since this breaks the tutorial code, I also opened cloudflare/workers-airtable-form#1 in the tutorial repository.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions