appsmith: [Bug] TypeError: Cannot read properties of undefined (reading 'parsed')

Sentry Issue: APPSMITH-15T

TypeError: Cannot read properties of undefined (reading 'parsed')
  at None (workers/evaluationUtils.ts:453:68)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (15 by maintainers)

Most upvoted comments

Here, props.options value becomes string somehow. Since the map method isn’t available for a string, the defaultSelectedValuesValidation() function exits without returning the expected ValidationResponse. This is the root cause of this issue.

Solutions:

  1. Handle the case when props.options becomes string inside defaultSelectedValuesValidation() function.
  2. Add ability to mark options as a dependency to defaultSelectedValues so that the defaultSelectedValuesValidation() will be called only after evaluating options. The result is that props.options inside defaultSelectedValuesValidation() will always be an array.

I think we should go ahead with solution 2 since it is the generic solution.

Can we pick this on priority? We’re seeing this every day

@somangshu This should be a part of the stability improvement efforts which @aswathkk is helping with. #7678

We have found issues that are potential duplicates:

  • [#8335] [Bug] TypeError: Cannot read properties of undefined (reading 'reduce') (92.59%) If any of the issues listed above are a duplicate, please consider closing this issue & upvoting the original one.
    Alternatively, if neither of the listed issues addresses your feature/bug, keep this issue open.