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

Bot setup on a Hubs Cloud server does not respond to "!hubs create" #99

Open
Charlesc22 opened this issue Jun 11, 2020 · 2 comments
Open

Comments

@Charlesc22
Copy link

I installed the Hubs discord bot code successfully on my instance of Hubs-cloud
I went through all the instructions, created a bot and added it to my discord server
I am able to do a "!hubs" or "!hubs help" command and it responds. But when I do a "!hubs create" it seems to ignore the command.

Any idea if there is something I missed?
Is the fact that it responds to "!hubs" command mean I setup everything correctly in my Hubs-Cloud admin?
Could there be a permissions issue with accessing the reticulum.js

@Charlesc22
Copy link
Author

Robin helped me log messages while calling the "!hubs create" command and we did get an error message. See below:
Send command: "!Hubs" (Works)Jun 11 20:55:01condescending-illusionist.test-internal.com CRON[8960]: pam_unix(cron:session):session opened for user root by (uid=0)Jun 11 20:55:01condescending-illusionist.test-internal.com CRON[8961]: (root) CMD (command -vdebian-sa1 > /dev/null && debian-sa1 1 1)Jun 11 20:55:01condescending-illusionist.test-internal.com CRON[8960]: pam_unix(cron:session):session closed for user root Send command: "!Hubs create" (Does not Work)Jun 11 20:58:10condescending-illusionist.utopia-internal.com bash[2467]:reticulum.default@TestServer-Sub-01(O): 20:58:10.304request_id=FheY4iJPiXVOvisASwPS [info] POST /api/v1/hubsJun 11 20:58:10condescending-illusionist.utopia-internal.com bash[2467]:pgbouncer.default@TestServer-Sub-01(O): 2020-06-11 20:58:10.340 UTC [2860] LOGS-0x2331e88: polycosm_production/[email protected]:5432 new connection toserver (from 10.0.5.96:48090)Jun 11 20:58:10condescending-illusionist.utopia-internal.com bash[2467]:reticulum.default@TestServer-Sub-01(O): 20:58:10.365request_id=FheY4iJPiXVOvisASwPS [info] Sent 401in 60msJun 11 20:58:10condescending-illusionist.utopia-internal.com bash[2467]:hubs-discord-bot.default@TestServer-Sub-01(O): [2020-06-11T20:58:10.366Z] TypeError: Cannot destructure property url of'undefined' or 'null'.Jun 11 20:58:10condescending-illusionist.utopia-internal.com bash[2467]:hubs-discord-bot.default@TestServer-Sub-01(O):     at/hab/svc/hubs-discord-bot/static/src/index.js:708:17Jun 11 20:58:10condescending-illusionist.utopia-internal.com bash[2467]:hubs-discord-bot.default@TestServer-Sub-01(O):     at runMicrotasks ()Jun 11 20:58:10condescending-illusionist.utopia-internal.com bash[2467]:hubs-discord-bot.default@TestServer-Sub-01(O):     at processTicksAndRejections(internal/process/task_queues.js:85:5)

@Charlesc22
Copy link
Author

That is kind of hard to read. I took a screensho
Erro Message
t so easier. See attached

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

1 participant