Invalid memory address or nil pointer dereference error in Pantherlog
Last updated: September 3, 2024
Issue
When trying to update a schema using pantherlog, I see an error like the following:
Unhandled exception: "{'message': '{invalid memory address or nil pointer dereference}', 'path': ['createOrUpdateSchema'], 'extensions': {'reportable': False}}"
Resolution
To resolve this issue:
Make sure your schema spells
logTypecorrectly, with a lowercase "L" and a capital "T".Check the logTypes of each data field, and make sure they're correct. For example, sometimes this error comes up when a field's logType was changed from
stringto an array, or fromobjecttoJSON.If you've checked these things and the error persists, contact the Panther support team for additional assistance.
Cause
This issue can occur when a schema contains a typo or erroneous logType.