n8n-nodes-speedtest-net 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ npm run build
|
|
|
22
22
|
npm pack
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Install the generated `n8n-nodes-speedtest-net-0.2.
|
|
25
|
+
Install the generated `n8n-nodes-speedtest-net-0.2.5.tgz` into your self-hosted n8n community-package directory (typically `~/.n8n/nodes`) with npm, using the n8n file owner's account, then restart n8n. Install on all workers in queue mode. Each worker automatically provisions its CLI when first needed.
|
|
26
26
|
|
|
27
27
|
For local development, point `N8N_CUSTOM_EXTENSIONS` at the built `dist/nodes` directory and make the project's dependencies available alongside it. Real n8n discovery and real Ookla requests still require verification in your environment.
|
|
28
28
|
|
|
@@ -53,16 +53,13 @@ Example for the reported Ookla rate limit:
|
|
|
53
53
|
"retryAfterSeconds": null,
|
|
54
54
|
"retryAt": null,
|
|
55
55
|
"retrySource": null,
|
|
56
|
-
"
|
|
57
|
-
"stderr": "[2026-10-30 14:30:58.565] [error] Limit reached: Too many requests received.",
|
|
58
|
-
"exitCode": 1,
|
|
59
|
-
"signal": null
|
|
56
|
+
"exitCode": 1
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
```
|
|
63
60
|
|
|
64
61
|
### What we can and cannot know
|
|
65
|
-
The wrapper
|
|
62
|
+
The wrapper keeps raw stdout/stderr and termination signal internally for classification, but omits them from serialized errors. The exit code remains available when present. It can classify rate limits and recognize an explicit `retry after N seconds` or `retry in N seconds` message if the CLI emits one. This is parsed CLI text, not an HTTP header or a documented promise from Ookla.
|
|
66
63
|
|
|
67
64
|
**A direct CLI wrapper cannot expose hidden HTTP response headers.** If Ookla does not print a retry duration, it remains `null`. `retryAt` is currently always `null`; a log timestamp is never treated as a quota reset. No fabricated cooldown, automatic retries, or rate-limit bypass is implemented. A rate-limit/licensing error can require more than simply waiting.
|
|
68
65
|
|
|
@@ -25,7 +25,7 @@ class SpeedtestError extends Error {
|
|
|
25
25
|
retryAfterSeconds,
|
|
26
26
|
retryAt: null,
|
|
27
27
|
retrySource: retryAfterSeconds === null ? null : 'cli_message',
|
|
28
|
-
...this.diagnostics,
|
|
28
|
+
...(this.diagnostics.exitCode !== undefined ? { exitCode: this.diagnostics.exitCode } : {}),
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speedtestError.js","sourceRoot":"","sources":["../../../nodes/Speedtest/speedtestError.ts"],"names":[],"mappings":";;;;AASA,oBAA4B,SAAQ,KAAK;IAGvB,IAAI;IACJ,WAAW;IAH5B,YACC,OAAe,EACC,IAAY,EACZ,WAAW,GAAmB,EAAE;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;oBAHC,IAAI;2BACJ,WAAW;QAG3B,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC9B,CAAC;IAED,MAAM;QACL,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxG,MAAM,WAAW,GAAG,8CAA8C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7E,wFAAwF;QACxF,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;QACtE,MAAM,OAAO,GAAG,WAAW,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/D,MAAM,iBAAiB,GAAG,OAAO,KAAK,IAAI,IAAI,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,C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