Autocomplete api error on vps but not locally

What I'm responding with:
2|Massive-Moderation | [ { name: '@acierdev', value: '234018417043046400' } ]
2|Massive-Moderation | [ { name: '@acierdev', value: '234018417043046400' } ]
Error:
2|Massive-Moderation | [ERROR] Encountered error while handling an autocomplete run method on command "ban" at path "/root/Massive/Moderation/src/commands/ban.js" DiscordAPIError: Invalid Form Body
2|Massive-Moderation | data.choices[0]: Expected an object/dictionary.
2|Massive-Moderation | at RequestHandler.execute (/root/Massive/Moderation/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
2|Massive-Moderation | at processTicksAndRejections (node:internal/process/task_queues:96:5)
2|Massive-Moderation | at async RequestHandler.push (/root/Massive/Moderation/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
2|Massive-Moderation | at async AutocompleteInteraction.respond (/root/Massive/Moderation/node_modules/discord.js/src/structures/AutocompleteInteraction.js:96:5)
2|Massive-Moderation | at async BanCommand.autocompleteRun (/root/Massive/Moderation/src/commands/ban.js:77:9)
2|Massive-Moderation | at async CoreListener.run (/root/Massive/Moderation/node_modules/@sapphire/framework/dist/listeners/application-commands/CorePossibleAutocompleteInteraction.js:17:17)
2|Massive-Moderation | at async Object.fromAsync (/root/Massive/Moderation/node_modules/@sapphire/result/dist/index.js:615:22)
2|Massive-Moderation | at async CoreListener._run (/root/Massive/Moderation/node_modules/@sapphire/framework/dist/lib/structures/Listener.js:93:24) {
2|Massive-Moderation | method: 'post',
2|Massive-Moderation | path: '/interactions/1167345907759595530/aW50ZXJhY3Rpb246MTE2NzM0NTkwNzc1OTU5NTUzMDpQU1pQTFF3ZVZmQ1JQUEdVZkVkY2dudTVPZDViOFliVGxYSVdNYlJKdXExenlRSkhPWlJ6NUlzRkw5OUlHNWw1Y0hVY2hxOHl1VE5nYVpHbkNQNEhRRWp5VXpzOXZsUktGNVJ1OWpOREFndk9EZEE0NktlbHVMQU91bzJJZEhCcw/callback',
2|Massive-Moderation | code: 50035,
2|Massive-Moderation | httpStatus: 400,
2|Massive-Moderation | requestData: { json: { type: 8, data: [Object] }, files: [] }
2|Massive-Moderation | }
2|Massive-Moderation | [ERROR] Encountered error while handling an autocomplete run method on command "ban" at path "/root/Massive/Moderation/src/commands/ban.js" DiscordAPIError: Invalid Form Body
2|Massive-Moderation | data.choices[0]: Expected an object/dictionary.
2|Massive-Moderation | at RequestHandler.execute (/root/Massive/Moderation/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
2|Massive-Moderation | at processTicksAndRejections (node:internal/process/task_queues:96:5)
2|Massive-Moderation | at async RequestHandler.push (/root/Massive/Moderation/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
2|Massive-Moderation | at async AutocompleteInteraction.respond (/root/Massive/Moderation/node_modules/discord.js/src/structures/AutocompleteInteraction.js:96:5)
2|Massive-Moderation | at async BanCommand.autocompleteRun (/root/Massive/Moderation/src/commands/ban.js:77:9)
2|Massive-Moderation | at async CoreListener.run (/root/Massive/Moderation/node_modules/@sapphire/framework/dist/listeners/application-commands/CorePossibleAutocompleteInteraction.js:17:17)
2|Massive-Moderation | at async Object.fromAsync (/root/Massive/Moderation/node_modules/@sapphire/result/dist/index.js:615:22)
2|Massive-Moderation | at async CoreListener._run (/root/Massive/Moderation/node_modules/@sapphire/framework/dist/lib/structures/Listener.js:93:24) {
2|Massive-Moderation | method: 'post',
2|Massive-Moderation | path: '/interactions/1167345907759595530/aW50ZXJhY3Rpb246MTE2NzM0NTkwNzc1OTU5NTUzMDpQU1pQTFF3ZVZmQ1JQUEdVZkVkY2dudTVPZDViOFliVGxYSVdNYlJKdXExenlRSkhPWlJ6NUlzRkw5OUlHNWw1Y0hVY2hxOHl1VE5nYVpHbkNQNEhRRWp5VXpzOXZsUktGNVJ1OWpOREFndk9EZEE0NktlbHVMQU91bzJJZEhCcw/callback',
2|Massive-Moderation | code: 50035,
2|Massive-Moderation | httpStatus: 400,
2|Massive-Moderation | requestData: { json: { type: 8, data: [Object] }, files: [] }
2|Massive-Moderation | }
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server