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

Error while running #145

Open
DataScraper007 opened this issue Mar 4, 2025 · 4 comments
Open

Error while running #145

DataScraper007 opened this issue Mar 4, 2025 · 4 comments

Comments

@DataScraper007
Copy link

(node:11152) [MODULE_NOT_FOUND] Error Plugin: httptoolkit-server: Cannot find module '../build/Release/node_datachannel.node'
Require stack:

  • E:\COMMON_CODES\httptoolkit-server\node_modules\node-datachannel\lib\index.cjs
    module: @oclif/[email protected]
    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
@pimterry
Copy link
Member

pimterry commented Mar 4, 2025

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?

@DataScraper007
Copy link
Author

Yes

@DataScraper007
Copy link
Author

I'm trying to understand how the server works because I'm not sure how or where it intercepts requests.

@pimterry
Copy link
Member

pimterry commented Mar 5, 2025

Can you delete node_modules, and then run npm install and 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.

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

No branches or pull requests

2 participants