yGuy / chatgpt-mattermost-bot

A very simple implementation of a service for a mattermost bot that uses ChatGPT in the backend.
MIT License
150 stars 48 forks source link

Invalid URL error #8

Closed zeppelinlg closed 1 year ago

zeppelinlg commented 1 year ago

Hello

Thanks for this work I try to use it but I have this error in the log.

chatgpt   | websocket connecting to wss://mattermost.**********.com/api/v4/websocket
chatgpt   | node:internal/url:565
chatgpt   |   throw new ERR_INVALID_URL(input);
chatgpt   |   ^
chatgpt   | 
chatgpt   | TypeError [ERR_INVALID_URL]: Invalid URL
chatgpt   |     at new NodeError (node:internal/errors:387:5)
chatgpt   |     at URL.onParseError (node:internal/url:565:9)
chatgpt   |     at new URL (node:internal/url:641:5)
chatgpt   |     at Object.<anonymous> (/app/src/process-graph-response.js:7:24)
chatgpt   |     at Module._compile (node:internal/modules/cjs/loader:1191:14)
chatgpt   |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
chatgpt   |     at Module.load (node:internal/modules/cjs/loader:1069:32)
chatgpt   |     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
chatgpt   |     at Module.require (node:internal/modules/cjs/loader:1093:19)
chatgpt   |     at require (node:internal/modules/cjs/helpers:108:18) {
chatgpt   |   input: '/json-to-svg',
chatgpt   |   code: 'ERR_INVALID_URL'
chatgpt   | }
wwek commented 1 year ago

The same problem

yGuy commented 1 year ago

Whoops - sorry for that. Will fix it immediately. There's an environment variable missing/needs to be ignored.

yGuy commented 1 year ago

I need to find out why the docker images aren't building. So right now, please check out and build the image yourself.

zeppelinlg commented 1 year ago

Thanks a lot, it's working. I have another issue but I'll create a new ticket