[DB] Provide fallback rendering for broken JSONPath exceptions

Created on 11 August 2025, 2 days ago

Problem/Motivation

Now, if you put a broken JSONPath expression, like $.metadata:output instead of $.metadata.output to the field settings in Views, you will see the full screen exception like this:

The website encountered an unexpected error. Try again later.

Flow\JSONPath\JSONPathException: Unable to parse token metadata:output in expression: .metadata:output in Flow\JSONPath\JSONPathLexer->createToken() (line 228 of vendor/softcreatr/jsonpath/src/JSONPathLexer.php). 

Proposed resolution

Would be good to catch this exception and render the exception message as a fallback inline in the Views field value.

✨ Feature request
Status

Active

Version

1.3

Component

Code

Created by

πŸ‡¦πŸ‡²Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024