will
will
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Hello, I'm intermittently getting hit with 50006 "Cannot send an empty message" errors in a production environment using discord.js. I can't seem to find any pattern aside from the fact that it occurs when sending attachments, specifically text files I've created server-side. Simply running a command multiple times will sometimes succeed and sometimes fail. Any ideas as to why this could be happening?!
94 replies
RRailway
Created by will on 9/18/2023 in #✋|help
bun: command not found
Hello, I'm trying to migrate my project to bun to make TS easier, and I'm when deploying, the logs get spammed with "/bin/bash: line 1: bun: command not found". I have a bun.lockb file, so it should auto-detect bun, no? My start command is bun run start which runs bun --smol run src/main.ts Please let me know what more I can provide! Project ID: 70bac78f-22aa-44c7-b196-a54ada2d52c8
24 replies
RRailway
Created by will on 10/28/2022 in #✋|help
Custom domain issues
2 replies
RRailway
Created by will on 10/24/2022 in #✋|help
NodeJS web app issues
Hello! I'm trying to deploy my NodeJS web app (using Fastify), but I'm running into an error (Application Error > Is your app correctly listening on $PORT?) I am correctly listening to process.env.PORT, however. My project ID is 97f8d68c-ca6e-469c-b7c3-f922f74c2cd6. Any help would be appreciated :)
14 replies
RRailway
Created by will on 9/14/2022 in #✋|help
Deployment error
Hey! When trying to deploy my discord bot (nodeJS) using Nixpacks (no issues with heroku buildpacks), I'm getting this error during build:
#11 7.033 npm ERR! path /app/node_modules/erlpack
#11 7.035 npm ERR! command failed
#11 7.035 npm ERR! command sh /tmp/install-cc5b7eb4.sh
#11 7.035 npm ERR! gyp info it worked if it ends with ok
#11 7.035 npm ERR! gyp info using [email protected]
#11 7.035 npm ERR! gyp info using [email protected] | linux | x64
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#11 7.035 npm ERR! gyp ERR! find Python checking if "python3" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python checking if "python" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python **********************************************************
#11 7.035 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
#11 7.035 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#11 7.035 npm ERR! gyp ERR! find Python you can try one of the following options:
#11 7.035 npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#11 7.035 npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)

#11 7.036 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
#11 7.036 npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
#11 7.036 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#11 7.036 npm ERR! gyp ERR! find Python For more information consult the documentation at:
#11 7.036 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 7.036 npm ERR! gyp ERR! find Python **********************************************************
#11 7.036 npm ERR! gyp ERR! find Python
#11 7.036 npm ERR! gyp ERR! configure error
#11 7.036 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
#11 7.036 npm ERR! gyp ERR! stack at PythonFinder.fail (/nix/store/6cdccplrjwga5rd3b2s7xb8zd25hnsix-nodejs-16.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
...
#11 7.033 npm ERR! path /app/node_modules/erlpack
#11 7.035 npm ERR! command failed
#11 7.035 npm ERR! command sh /tmp/install-cc5b7eb4.sh
#11 7.035 npm ERR! gyp info it worked if it ends with ok
#11 7.035 npm ERR! gyp info using [email protected]
#11 7.035 npm ERR! gyp info using [email protected] | linux | x64
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#11 7.035 npm ERR! gyp ERR! find Python checking if "python3" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python checking if "python" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python **********************************************************
#11 7.035 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
#11 7.035 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#11 7.035 npm ERR! gyp ERR! find Python you can try one of the following options:
#11 7.035 npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#11 7.035 npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)

#11 7.036 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
#11 7.036 npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
#11 7.036 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#11 7.036 npm ERR! gyp ERR! find Python For more information consult the documentation at:
#11 7.036 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 7.036 npm ERR! gyp ERR! find Python **********************************************************
#11 7.036 npm ERR! gyp ERR! find Python
#11 7.036 npm ERR! gyp ERR! configure error
#11 7.036 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
#11 7.036 npm ERR! gyp ERR! stack at PythonFinder.fail (/nix/store/6cdccplrjwga5rd3b2s7xb8zd25hnsix-nodejs-16.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
...
any ideas?
22 replies