Skip to content

Script crashes API server when used #2157

@weedenbc

Description

@weedenbc

When triggered with any chosen check, the script crashes the API server with the following error:

For reference, the error message generated was: TypeError: attrValue.match is not a function TypeError: attrValue.match is not a function at apiscript.js:14586:29 at String.replace (<anonymous>) at processFormula (apiscript.js:14580:27) at processTokenRollData (apiscript.js:14612:46) at apiscript.js:14867:24 at Array.map (<anonymous>) at handleRolls (apiscript.js:14866:45) at handleInput (apiscript.js:14906:63) at file:///home/node/d20-api-server/src/pubsub2.js:42:46 at Map.forEach (<anonymous>)

Hadn't changed anything since I had successfully been using it for several years. Set to use Latest version from the API library. Tried in both the normal and experimental API server. Using it for a purchased 5e module with D&D 5e 2014 character sheets and under Jumpgate.

Thread of similar problems here: https://app.roll20.net/forum/post/12198934/group-check-slash-apply-damage-not-working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions