Director is listening on port 3001
SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
at JSON.parse (<anonymous>)
at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
at successSteps (node:internal/deps/undici/undici:6636:27)
at node:internal/deps/undici/undici:1236:60
at node:internal/process/task_queues:140:7
at AsyncResource.runInAsyncScope (node:async_hooks:206:9)
at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Thats pretty light on anything that people can look at to help diagnose he issue.
Code/server config etc? Documents, anything?
code this is the code
I don’t have time to set all that up in a VM for testing as I’m not running that on my machine but I can’t see from the call stack where the error is taking place, is that the whole stack trace?
When exactly does it fall over, what API are you calling in that project?
From the looks of it, the code is trying to parse a return value from undici which looks like it’s an http client, so it’s downloading from somewhere, could the value it’s getting be an error code and not valid JSON?
I think you’re going to at least have to debug this a bit more before getting more help as I don’t think it’s a mongo issue.
I have no idea what Api its calling in but I have the mongo connecting from the ai_director that holds chatgpt key, uberduck keys and a discord bot. I have also noticed when i type the command !topic it goes through the suggested topics and stops there and doesnt generate in generated_topics so maybe something is going on with that… I am not that well versed in this as its my first project using mongoDB but any help I appreciate it.