Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Bot breaks if crewneed field output is too big #15

Open
ineffyble opened this issue Jan 18, 2021 · 0 comments
Open

Bug: Bot breaks if crewneed field output is too big #15

ineffyble opened this issue Jan 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ineffyble
Copy link
Member

error: Error during command execution {"error":"RichEmbed field values may not exceed 1024 characters.","callstack":"RangeError: RichEmbed field values may not exceed 1024 characters.\n    at Function.normalizeField (/Users/effy/Code/bot/node_modules/discord.js/src/structures/RichEmbed.js:325:36)\n    at RichEmbed.addField (/Users/effy/Code/bot/node_modules/discord.js/src/structures/RichEmbed.js:162:39)\n    at asyncHandler (/Users/effy/Code/bot/build/commands/crewneed.js:115:31)\n    at async /Users/effy/Code/bot/build/utils.js:88:13"}

caused by -d crewneed mike burnham sr. for Daxed.

The data that's being pushed into the embed which is too large is this:

[3* Polyalloy](http://localhost:4420/item_info?symbol=polyalloy_quality3_compon) (need 8, have 0), [1* Casing](http://localhost:4420/item_info?symbol=casing_quality1_compon) (need 6, have 0), [3* Sensor](http://localhost:4420/item_info?symbol=sensor_quality3_compon) (need 4, have 0), [4* Sensor](http://localhost:4420/item_info?symbol=sensor_quality4_compon) (need 4, have 0), [4* Casing](http://localhost:4420/item_info?symbol=casing_quality4_compon) (need 4, have 0), [3* Optronic Circuit](http://localhost:4420/item_info?symbol=optronic_circuit_quality3_compon) (need 4, have 1), [1* Power Cell](http://localhost:4420/item_info?symbol=power_cell_quality1_compon) (need 3, have 2), [0* Desktop Monitor](http://localhost:4420/item_info?symbol=desktop_monitor_24c2_quality0_equip) (need 2, have 2), [2* Science Experiment - Faction](http://localhost:4420/item_info?symbol=science_experiment_quality2_equip) (need 1, have 0), [2* Authorization Code](http://localhost:4420/item_info?symbol=authorization_code_quality2_equip) (need 1, have 1)
@ineffyble ineffyble added the bug Something isn't working label Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant