opr-official / army-forge-issues

0 stars 0 forks source link

TTS endpoint giving 500 when retrieving a campaign list that has a hero with "Skill Sets" or "Injuries" or "Talents" #8

Open thomascgray opened 1 year ago

thomascgray commented 1 year ago

If I hit GET https://army-forge.onepagerules.com/api/tts?id=<army id> with a campaign list where regular units have "Traits", everything works as expected.

However, if I give a hero unit any "Skill Sets" or "Injuries" or "Talents", then the endpoint returns 500: image

Request. (C:\Users\ATOM\AppData\Local\Temp\tmp-7592-M04P53B3iO9d\node_modules\got\dist\source\as-promise\index.js:86:42)
Object.onceWrapper (node:events:514:26)
Request.emit (node:events:406:35)
Request.emit (node:domain:470:12)
Request._onResponseBase (C:\Users\ATOM\AppData\Local\Temp\tmp-7592-M04P53B3iO9d\node_modules\got\dist\source\core\index.js:726:22)
runMicrotasks ()
processTicksAndRejections (node:internal/process/task_queues:96:5)
Request._onResponse (C:\Users\ATOM\AppData\Local\Temp\tmp-7592-M04P53B3iO9d\node_modules\got\dist\source\core\index.js:765:13)

Note - if I unselect all the "Skill Sets" or "Injuries" or "Talents", then the endpoint does work. It's something about selecting one of those things that causes an exception.

For example:

Risauce commented 1 year ago

+1