Title: fetch is not defined · Issue #676 · microsoft/devicescript · GitHub
Open Graph Title: fetch is not defined · Issue #676 · microsoft/devicescript
X Title: fetch is not defined · Issue #676 · microsoft/devicescript
Description: Describe the issue when i select flash , it will show a error using serial port COM3 at 1500000 esptool: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.11_env\Scripts\esptool.py fetch https://github.com/microsoft/devicescript-es...
Open Graph Description: Describe the issue when i select flash , it will show a error using serial port COM3 at 1500000 esptool: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.11_env\Scripts\esptool.py fetch http...
X Description: Describe the issue when i select flash , it will show a error using serial port COM3 at 1500000 esptool: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.11_env\Scripts\esptool.py fetch http...
Opengraph URL: https://github.com/microsoft/devicescript/issues/676
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" fetch is not defined","articleBody":"## Describe the issue\r\n \r\nwhen i select flash , it will show a error \r\n\r\n```\r\nusing serial port COM3 at 1500000\r\nesptool: C:\\Users\\Administrator\\.espressif\\python_env\\idf5.1_py3.11_env\\Scripts\\esptool.py\r\nfetch https://github.com/microsoft/devicescript-esp32/releases/latest/download/devicescript-esp32c3-esp32c3_bare-0x0.bin\r\nF:\\esp32\\node_modules\\@devicescript\\cli\\built\\devicescript-cli.cjs:490875\r\n const resp = await fetch(dlUrl);\r\n ^\r\n\r\nReferenceError: fetch is not defined\r\n at fetchFW (F:\\esp32\\node_modules\\@devicescript\\cli\\built\\devicescript-cli.cjs:490875:18)\r\n at async flashESP32 (F:\\esp32\\node_modules\\@devicescript\\cli\\built\\devicescript-cli.cjs:490730:21)\r\n```\r\n\r\n \r\n## Environment\r\n\r\nvscode: 1.85.1\r\nextension: 2.15.23\r\ndevsVersion: v2.15.23\r\nruntimeVersion: v2.15.23\r\nnodeVersion: v16.17.0\r\n\r\n## Sources\r\n- src/main.ts}\r\n```ts title=\"src/main.ts\"\r\nimport * as ds from \"@devicescript/core\"\r\n\r\nsetInterval(async () =\u003e {\r\n console.log(\":)\")\r\n}, 1000)\r\n\r\n```\r\n\r\n## Devices\r\n\r\ninteraction_mode: 0\r\nauto_connect: false\r\nreset_in: false\r\nlast_reset_in_time: 0\r\ntransport:\r\n web: connected\r\ndevice: \r\n id: VX12 (0xca7adf6c60073afc)\r\n product: ? (0x?)\r\n firmware_version: \r\n uptime: \r\n stats: announce 461, drop 0, restart 0\r\n services:\r\n infrastructure (0x1e1589eb)\r\n proxy (0x16f19949) \r\n\r\n**Screenshots**\r\n\r\n ","author":{"url":"https://github.com/toohandsome","@type":"Person","name":"toohandsome"},"datePublished":"2024-01-01T04:52:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/676/devicescript/issues/676"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:060c2ec8-885d-6d79-f730-268548e6a727 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B72A:386144:6CE3F3:8E90B2:698E7120 |
| html-safe-nonce | d4af54391d314a2c0a18259b0aa497d997d898e1e7ba541cbe4d08c056b9fd14 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzJBOjM4NjE0NDo2Q0UzRjM6OEU5MEIyOjY5OEU3MTIwIiwidmlzaXRvcl9pZCI6IjE3NTE0OTQ5Nzk0MDkwNDc4NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 887a8ee7aa873b79db2956fb338a09ecb6bcabb8863435bdbf2070834471374d |
| hovercard-subject-tag | issue:2061317431 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/devicescript/676/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b5f61436105a35d0ca1fb0e86b36d74e4bcf2325e11d3c89a628419ba4e5749/microsoft/devicescript/issues/676 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b5f61436105a35d0ca1fb0e86b36d74e4bcf2325e11d3c89a628419ba4e5749/microsoft/devicescript/issues/676 |
| og:image:alt | Describe the issue when i select flash , it will show a error using serial port COM3 at 1500000 esptool: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.11_env\Scripts\esptool.py fetch http... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | toohandsome |
| hostname | github.com |
| expected-hostname | github.com |
| None | f86603f0b4e9df9a462725324a8c84c98fc50866bdb6ae8ff026fabe56a60c57 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/devicescript git https://github.com/microsoft/devicescript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 469857534 |
| octolytics-dimension-repository_nwo | microsoft/devicescript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 469857534 |
| octolytics-dimension-repository_network_root_nwo | microsoft/devicescript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7eb8835f5978c5aa7a64336b39e0774a93a9a196 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width