michaelwoods/onstar2mqtt

getLocation Crashes

Closed this issue · 2 comments

Seeing a crash each time I run getLocation today:

homeassistant/<VIN>/command/getLocation/state {"timestamp":"2023-12-13 08:44:40"}
/app/src/index.js:114
            client.publish(commandStatusTopic, JSON.stringify({"Command": err}), {retain: true})});
                                                    ^

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'socket' -> object with constructor 'TLSSocket'
    --- property '_httpMessage' closes the circle
    at JSON.stringify (<anonymous>)
    at /app/src/index.js:114:53
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.18.2
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

I don't believe you're running a release of this project?

Hmm, perhaps I walked too far upstream when trying to figure out where to submit this. In any event it looks like it was an OnStar issue? Everything started working properly again after a few hours. Going to close this.