Repository navigation
Error while running #145
Description
Activity
Thanks for reporting this @DataScraper007. It looks like this is a Windows machine, and you're running the server manually rather than running the main HTTP Toolkit app, is that right?
Yes
I'm trying to understand how the server works because I'm not sure how or where it intercepts requests.
Can you delete
node_modules, and then runnpm installand share all the output here? That should explain why this file is missing.I'm trying to understand how the server works because I'm not sure how or where it intercepts requests.
It depends what you mean, but you're probably looking for either:
- The interceptors directory, which contains various interceptors that automatically configure certain targets (e.g. opening a browser, running a Docker container, or intercepting an Android device) to send traffic via HTTP Toolkit's proxy & trust HTTP Toolkit's CA certificate when you click an interception button in HTTP Toolkit. This is where all the client configuration happens.
- Mockttp, a separate library (although it is initialised and distributed as part of the server) which contains the actual proxy server and rules system. This is where all the actual networking is handled.
Hey ! Same error here
Here is what I did:- Cloned repo
- npm install:
npm warn deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated lodash.template@4.18.1: This package is deprecated. Use https://socket.dev/npm/package/eta instead. npm warn deprecated har-validator@5.1.3: this library is no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated cli-ux@5.6.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. added 1286 packages, and audited 1287 packages in 5s 197 packages are looking for funding run `npm fund` for details 19 vulnerabilities (3 low, 11 moderate, 2 high, 3 critical) To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. npm install 4,98s user 1,99s system 143% cpu 4,859 totalnpm start:
> httptoolkit-server@1.25.1 start > node --watch ./bin/run start Error: Cannot find module '../build/Release/node_datachannel.node' Require stack: - /home/itrooz/moi/workspaces/contrib/httptoolkit-server/node_modules/node-datachannel/lib/index.cjs Code: MODULE_NOT_FOUND Failed running './bin/run start'. Waiting for file changes before restarting.OS: Arch Linux
node: v24.15.0
npm: 11.12.1This is coming from node-datachannel. Do you have postinstall scripts disabled? Like most native libraries, it uses a postinstall script to either download a prebuilt binary (if possible) or compile the native code locally (if not).
Looks like I had disabled them indeed ! No idea how that got there
Thank you, it works now
(node:11152) [MODULE_NOT_FOUND] Error Plugin: httptoolkit-server: Cannot find module '../build/Release/node_datachannel.node'
Require stack:
module: @oclif/config@1.18.2
task: toCached
plugin: httptoolkit-server
root: E:\COMMON_CODES\httptoolkit-server
See more details with DEBUG=*
(Use
node --trace-warnings ...to show where the warning was created)» Error: command start not found