-
Notifications
You must be signed in to change notification settings - Fork 48
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
TypeError: debug_1.default is not a function #167
Comments
tried and now I get amazon-kindle-bulk-downloader$ bun run start --baseUrl "https://www.amazon.com.au" TROUBLESHOOTING: https://pptr.dev/troubleshooting
|
Do you have puppeteer successfully installed and its chrome engine? Did you run Also, I’m curious what system you’re on. x86 or arm64, and which Linux distro? |
I’m getting the same error. On Ubuntu 24.04.1 x86_64 Installed Bun, did the bun install in the repo, edited the .env for creds, bun run start, With and without baseurl |
System is Fedora on X86. The first try I did bun install in the repo root. The second error is after doing bun install [repo name] to see if it helped. |
I got the same error. Here's what I did:
System details: Mac Mini M4, macOS Sequoia Version 15.3.1, default macOS terminal |
Managed to troubleshoot and get it working with the help of Chat GPT:
Don't forget to remove the exported env variables by unsetting them, else your password will remain accessible within the shell. |
I installed puppeteer but still no go. I'm getting the sandbox error. I'm running Fedor, and the fix in https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md appears to be Ubuntu/Debian specific. |
I'm on Windows and was getting the same. Used a mix of a few others and seems to have worked.
|
Linux dell 6.12.11-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 24 04:59:58 UTC 2025 x86_64 GNU/Linux
bun was installed successfully to ~/.bun/bin/bun
bun help works.
exported ENV vars of
AMAZON_USER (which is an email address with + in it if that might be relevant)
PASSWORD
OTP
amazon-kindle-bulk-downloader$ bun run start --baseUrl "https://www.amazon.com.au"
$ bun run src/index.ts --baseUrl https://www.amazon.com.au
32 | const url_1 = require("url");
33 | const lru_cache_1 = __importDefault(require("lru-cache"));
34 | const agent_base_1 = require("agent-base");
35 | const debug_1 = __importDefault(require("debug"));
36 | const proxy_from_env_1 = require("proxy-from-env");
37 | const debug = (0, debug_1.default)('proxy-agent');
^
TypeError: debug_1.default is not a function. (In 'debug_1.default("proxy-agent")', 'debug_1.default' is an instance of Object)
at /home/zebee/.bun/install/cache/[email protected]@@@1/dist/index.js:37:27
Bun v1.2.2 (Linux x64)
error: script "start" exited with code 1
No proxy in use, can wget amazon:
/amazon-kindle-bulk-downloader$ wget https://www.amazon.com.au
Saving 'index.html'
HTTP response 200 [https://www.amazon.com.au]
index.html 100% [=============================================>] 139.56K --.-KB/s
[Files: 1 Bytes: 139.56K [185.84KB/s] Redirect]
The text was updated successfully, but these errors were encountered: