Advertisement
Guest User

Petrostats error

a guest
May 10th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | Help | 0 0
  1. % Total % Received % Xferd Average Speed Time Time Time Current
  2. Dload Upload Total Spent Left Speed
  3.  
  4. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  5. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  6. 50 22.6M 50 11.5M 0 0 8774k 0 0:00:02 0:00:01 0:00:01 8768k
  7. 100 22.6M 100 22.6M 0 0 13.8M 0 0:00:01 0:00:01 --:--:-- 13.8M
  8. npm WARN deprecated node-pre-gyp@0.17.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
  9.  
  10. added 67 packages in 4s
  11.  
  12. 3 packages are looking for funding
  13. run `npm fund` for details
  14. npm notice
  15. npm notice New minor version of npm available! 9.5.1 -> 9.6.6
  16. npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6>
  17. npm notice Run `npm install -g npm@9.6.6` to update!
  18. npm notice
  19. npm WARN old lockfile
  20. npm WARN old lockfile The package-lock.json file was created with an old version of npm,
  21. npm WARN old lockfile so supplemental metadata must be fetched from the registry.
  22. npm WARN old lockfile
  23. npm WARN old lockfile This is a one-time fix-up, please be patient...
  24. npm WARN old lockfile
  25.  
  26. added 1 package, changed 1 package, and audited 316 packages in 9s
  27.  
  28. 34 packages are looking for funding
  29. run `npm fund` for details
  30.  
  31. found 0 vulnerabilities
  32.  
  33. > pterostats@v3.0.0 start
  34. > node index.js
  35.  
  36. [PteroStats] Bot is up!
  37. [PteroStats] If you need support you can join our discord server https://discord.gg/zv6maQRah3
  38. [PteroStats] If some node is online but the embed is read as offline, please enable log_error on config file and report it at https://discord.gg/zv6maQRah3
  39. [PteroStats] Getting nodes stats
  40. [PteroStats] Stats posted!
  41. /home/minecraft/multicraft/servers/server490683/node_modules/@discordjs/rest/dist/index.js:640
  42. throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
  43. ^
  44.  
  45. DiscordAPIError[50035]: Invalid Form Body
  46. components[0].components[BASE_TYPE_BAD_LENGTH]: Must be between 1 and 1521 in length.
  47. at handleErrors (/home/minecraft/multicraft/servers/server490683/node_modules/@discordjs/rest/dist/index.js:640:13)
  48. at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  49. at async SequentialHandler.runRequest (/home/minecraft/multicraft/servers/server490683/node_modules/@discordjs/rest/dist/index.js:1021:23)
  50. at async SequentialHandler.queueRequest (/home/minecraft/multicraft/servers/server490683/node_modules/@discordjs/rest/dist/index.js:862:14)
  51. at async REST.request (/home/minecraft/multicraft/servers/server490683/node_modules/@discordjs/rest/dist/index.js:1387:22)
  52. at async TextChannel.send (/home/minecraft/multicraft/servers/server490683/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:162:15) {
  53. requestBody: {
  54. files: [],
  55. json: {
  56. content: '',
  57. tts: false,
  58. nonce: undefined,
  59. embeds: [
  60. {
  61. title: 'Porser Status',
  62. color: 5793266,
  63. footer: { text: 'For Porama SMP', icon_url: undefined },
  64. description: 'Next update <t:1683737140:R>\n' +
  65. '\n' +
  66. '**Nodes Stats [1]**\n' +
  67. '**Node1 USEAST:** :green_circle: Online\n' +
  68. '```\n' +
  69. 'Memory : 2 GB / 14 GB\n' +
  70. 'Disk : 32 GB / 223 GB\n' +
  71. 'Servers : 1\n' +
  72. 'Location : USEAST\n' +
  73. 'Allocations : 422\n' +
  74. '```',
  75. timestamp: '2023-05-10T16:45:20.022Z',
  76. fields: [ [Object] ]
  77. }
  78. ],
  79. components: [ { type: 1, components: [] } ],
  80. username: undefined,
  81. avatar_url: undefined,
  82. allowed_mentions: undefined,
  83. flags: undefined,
  84. message_reference: undefined,
  85. attachments: [],
  86. sticker_ids: undefined,
  87. thread_name: undefined
  88. }
  89. },
  90. rawError: {
  91. code: 50035,
  92. errors: {
  93. components: { '0': { components: { _errors: [Array] } } }
  94. },
  95. message: 'Invalid Form Body'
  96. },
  97. code: 50035,
  98. status: 400,
  99. method: 'POST',
  100. url: 'https://discord.com/api/v10/channels/1105700930705444936/messages'
  101. }
  102.  
  103. Node.js v18.16.0
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement