Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use fetch API on Azure Static web apps #2676

Open
censujiang opened this issue Aug 20, 2024 · 0 comments
Open

Unable to use fetch API on Azure Static web apps #2676

censujiang opened this issue Aug 20, 2024 · 0 comments

Comments

@censujiang
Copy link

censujiang commented Aug 20, 2024

Environment

node:20 in azure static web apps

Reproduction

https://stackblitz.com/edit/github-p3avvp?file=server%2Froutes%2Findex.ts

Describe the bug

In this product environment of Azure, even if it is set to node:20, it still does not include the fetch api

nuxt/nuxt#28611

Additional context

A valid Azure subscription is required to test Static web apps. This error only occurs in the cloud, not in the local simulator.

Logs

{
    "url": "/",
    "statusCode": 500,
    "statusMessage": "",
    "message": "[GET] \"https://www.baidu.com\": <no response> _fetch1 is not a function",
    "stack": ""
}

Tasks

No tasks being tracked yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant