Request error using Azure Communications Services Email JS

For Workes & Pages, what is the name of the domain?

http://localhost

What is the error message?

[ERROR] RestError: Error sending request: Unsupported cache mode: no-store You may need to enable the cache_option_enabled compatability flag. at getError (file:///Users/michael/Workspace/invento/webapi/node_modules/@azure/core-rest-pipeline/src/fetchHttpClient.ts:192:12) at FetchHttpClient.sendRequest (file:///Users/michael/Workspace/invento/webapi/node_modules/@azure/core-rest-pipeline/src/fetchHttpClient.ts:48:13) { code: ‘REQUEST_SEND_ERROR’,

What is the issue or error you’re encountering

I would like to use Azure Communication Services JS to send an email. In a simple node script it works, but as soon as I add to Cloudflare Pages Function it errors.

What steps have you taken to resolve the issue?

Tried to lookup documentation on cache_option_enabled but didn’t find any.

Tried adding addEventListener(‘fetch’, event => { }) to remove the Cache-Control header before request is executed.

What are the steps to reproduce the issue?

Create Azure Communication Services and Azure Email Communiccation Services. Setup free domain in Azure Email Communiccation Services > Domains. Copy email code sample from Azure Communication Services > Email. Try and execute with Cloudflare Page Function.

Decided to file github issue here: