Skip to content

Unable to communicate with bot #21

@D1reW0lf

Description

@D1reW0lf

Hi.

When I try to use the bot self-hosted, I get this error:

api-1 | Failed to fetch bot stats: undefined / Unable to communicate with bot

Together with:

bot-1    | Running database migrations...
bot-1    | Failed to run migrations for infractions: MongoError: ns does not exist: admin.infractions
bot-1    | Failed to run migrations for pending_logins: MongoError: ns does not exist: admin.pending_logins
bot-1    | Failed to run migrations for servers: MongoError: ns does not exist: admin.servers
bot-1    | Failed to run migrations for sessions: MongoError: ns does not exist: admin.sessions
bot-1    | Failed to run migrations for tempbans: MongoError: ns does not exist: admin.tempbans
bot-1    | Failed to run migrations for users: MongoError: ns does not exist: admin.users
bot-1    | Enabling Prometheus metrics on :0
bot-1    | Prometheus metrics ready
bot-1    | $API_WS_URL and $API_WS_TOKEN set; Connecting to ws://api:9000/internal/ws
api-1    | WS Upgrade /internal/ws
bot-1    | WebSocket connected successfully
bot-1    | /app/bot/node_modules/revolt.js/node_modules/axios/lib/core/createError.js:16
bot-1    |   var error = new Error(message);
bot-1    |               ^
bot-1    | 
bot-1    | Error: Request failed with status code 401
bot-1    |     at createError (/app/bot/node_modules/revolt.js/node_modules/axios/lib/core/createError.js:16:15)
bot-1    |     at settle (/app/bot/node_modules/revolt.js/node_modules/axios/lib/core/settle.js:17:12)
bot-1    |     at IncomingMessage.handleStreamEnd (/app/bot/node_modules/revolt.js/node_modules/axios/lib/adapters/http.js:322:11)
bot-1    |     at IncomingMessage.emit (node:events:529:35)
bot-1    |     at endReadableNT (node:internal/streams/readable:1400:12)
bot-1    |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {

I'm assuming I did something wrong on the.env settings, but I think that the more I try the more I'm messing with it, so if anyone has an idea what could be wrong, I would really appreciate any help.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions