Skip to content

Conversation

@swapnil-nagar
Copy link
Contributor

@swapnil-nagar swapnil-nagar commented Jan 30, 2026

If you use clone method on request object in HTTP triggered function with POST method, an exception is thrown.

Happens in version 4.11.0, if you roll back to 4.10.0 the issue is gone.

Stack trace:

Result: Failure Type: Exception: Cannot clone object of unsupported type. Stack: DataCloneError: Cannot clone object of unsupported type. at new DOMException (node:internal/per_context/domexception:76:18) at structuredClone (node:internal/worker/js_transferable:126:26) at HttpRequest.clone (/home/site/wwwroot/node_modules/@azure/functions/dist/azure-functions.js:1878:25) at /home/site/wwwroot/dist/src/functions/HandleSlackAchievementCommand.js:26:82 at Generator.next (<anonymous>) at /home/site/wwwroot/dist/src/functions/HandleSlackAchievementCommand.js:8:71 at new Promise (<anonymous>) at __awaiter (/home/site/wwwroot/dist/src/functions/HandleSlackAchievementCommand.js:4:12) at handleSlackAchievementCommand (/home/site/wwwroot/dist/src/functions/HandleSlackAchievementCommand.js:24:12) at InvocationModel.<anonymous> (/home/site/wwwroot/node_modules/@azure/functions/dist/azure-functions.js:215:46)

Environment

  • Node 24
  • Cloud deployment, Linux
  • Flex Plan
  • @azure/functions = 4.11.0

@swapnil-nagar swapnil-nagar requested a review from a team as a code owner January 30, 2026 22:59
@swapnil-nagar
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

@TsuyoshiUshio TsuyoshiUshio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a look the comment!

@swapnil-nagar swapnil-nagar enabled auto-merge (squash) January 31, 2026 00:50
@swapnil-nagar
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@swapnil-nagar swapnil-nagar merged commit 06427e7 into v4.x Jan 31, 2026
13 checks passed
@swapnil-nagar swapnil-nagar deleted the swapnil/httpTriggerCloningIssue branch January 31, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants