Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

OGL Sheet Not Updating When Creating Trait from API?

1561298695

Edited 1561298963
GM Michael
API Scripter
I'm not sure where this should even go because I'm not quite sure it's a bug because I could be doing something wrong, but lately I've been seeing something weird. I'm using the API to create an NPC trait on a 5e OGL NPC character sheet.  It nearly always works just fine, but once in a while (~5%), it only sorta works.  The attributes get created just fine, but for some strange reason, they don't actually show up on the character sheet. Here, you can see the relevant section of my console log.  Before and after the operation, I dump the list of traits, so I can clearly see that my traits did get added and appear to have all the correct values. CREATE BEFORE ====================================================================== OGL TRAIT: {"name":"repeating_npctrait_-LDz8t6KFXzW3xXe8E4z_name","current":"Foxfire","max":"","_id":"-Li3UnHncKJggRaCvh2J","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-LDz8t6KFXzW3xXe8E4z_desc","current":"Creatures that come within 10 feet of the Albedo Soldier that are hostile to it must make a DC 14 dexterity saving throw or take [[6d6]] radiant damage, half on success.","max":"","_id":"-Li3UnHo9rKirUyGcWTh","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-LDz97xnFs2I9dH5Ed-A_name","current":"Divine Avatars","max":"","_id":"-Li3UnHo9rKirUyGcWTi","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-LDz97xnFs2I9dH5Ed-A_desc","current":"Albedo serve Soralon unconditionally and cannot be made to turn against him by anything short of a Wish spell.","max":"","_id":"-Li3UnHp561jJZ86xtHt","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} ==================================================================================== CREATE AFTER ======================================================================= OGL TRAIT: {"name":"repeating_npctrait_-LDz8t6KFXzW3xXe8E4z_name","current":"Foxfire","max":"","_id":"-Li3UnHncKJggRaCvh2J","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-LDz8t6KFXzW3xXe8E4z_desc","current":"Creatures that come within 10 feet of the Albedo Soldier that are hostile to it must make a DC 14 dexterity saving throw or take [[6d6]] radiant damage, half on success.","max":"","_id":"-Li3UnHo9rKirUyGcWTh","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-LDz97xnFs2I9dH5Ed-A_name","current":"Divine Avatars","max":"","_id":"-Li3UnHo9rKirUyGcWTi","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-LDz97xnFs2I9dH5Ed-A_desc","current":"Albedo serve Soralon unconditionally and cannot be made to turn against him by anything short of a Wish spell.","max":"","_id":"-Li3UnHp561jJZ86xtHt","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-Li3_4pme8rEkb7e7r7I_name","current":"Infantry Formation of 100 Levied Troops","max":"","_id":"-Li3_4pvOLfbIqUt2rOG","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} OGL TRAIT: {"name":"repeating_npctrait_-Li3_4pme8rEkb7e7r7I_desc","current":"","max":"","_id":"-Li3_4qby-RKCPt0Qqu1","_type":"attribute","_characterid":"-Li3UnEobUSoCv2wtlQj"} ==================================================================================== Any clue what might be causing this?  It's not reliable.  If it's any help, here's my chrome console log.  I'm not sure if that error is related or not. Is this maybe related to the sheet worker bug ?
For some reason, it seems to be happening more frequently tonight, on the order of 2/3 times. Again, on the off-chance the console helps...
1561345678
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
well, the "failed to load resource" messages certainly aren't normal. I would check to make sure you don't have an extension interferring.
I just ran through it in incognito mode and it continued to happen, so looks like it's not an issue with an extension.