Skip to content

Error after test: ReferenceError: fetch is not defined #1

@catmand00

Description

@catmand00

Full output:

ETHGlobal Speed Test

✔ Speed         15 Mbps 
✔ Latency       43 ms
✔ Elapsed       43s

 IP     172.18.0.1
 Mac    null

 Your internet speed is 14.93 Mbps on Sat, 23 Sep 2023 20:51:28 GMT 

file:///home/ligma/.npm/_npx/9cf3680a564fc667/node_modules/@ethglobal/speed/index.js:186
        const postUpdate = await fetch('https://speed.ethglobal.com/api/create', {
                           ^

ReferenceError: fetch is not defined
    at IncomingMessage.<anonymous> (file:///home/ligma/.npm/_npx/9cf3680a564fc667/node_modules/@ethglobal/speed/index.js:186:28)

System info:

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
> node -v
v16.14.0
> npm --version
8.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions