[SERVER-75837] Improve error message when failing to parse json Created: 07/Apr/23 Updated: 29/Oct/23 Resolved: 11/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Charlie Swanson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | QO 2023-04-17 |
| Participants: |
| Description |
|
The 'fromjson' helper gives you the offset of the bad character, but this is often not that helpful since you cannot visually tell what "offset 65" is - you'll need to go put it into another tool. The idea for this ticket is to highlight that substring/offset better in the logs. |
| Comments |
| Comment by Githook User [ 10/Apr/23 ] |
|
Author: {'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}Message: |