#API error 50035 and DICT_TYPE_CONVERT error
21 messages · Page 1 of 1 (latest)
Don’t JSON.stringify it. .toJSON() it, you need actual objects not a string
command.data.toJSON()
Then one of your commands doesn’t export a data property (assuming that you get a can’t read properties of undefined (reading toJSON) error)
If not show the error you get and the code you use with toJSON
But stringifying them definitely is wrong.
Show one of your commands? You seem to already do…
You export an object. It has a data property. So you export a data property
Then show your actual error please (including stacktrace)
That is from your JSON.stringify though which I already told you won’t ever work, not when you do .toJSON() (which you said you did too and had another error). Show that error
command not commands. You try to push properties of your array into your array
Short answer: Nowhere.
Longer answer: if you have questions you need answered about them ddevs in #useful-servers would be the way to go.