Frontmatter
| id | 3737 |
| title | Store loading catch error not working |
| state | Closed |
| labels | bugstale |
| assignees | [] |
| createdAt | Jan 2, 2023, 2:10 AM |
| updatedAt | Sep 14, 2024, 4:26 AM |
| githubUrl | https://github.com/neomjs/neo/issues/3737 |
| author | Dinkh |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 14, 2024, 4:26 AM |
If the url for a store is not working (404) it is not getting into the promiseJson catch part but the then part. And there it crashes.
Neo.Xhr.promiseJson({ url: params.url }).catch(err => { console.log('Error for Neo.Xhr.request', err, me.id); }).then(data => { //==> here instead of above me.data = Array.isArray(data.json) ? data.json : data.json.data; // we do not need to fire a load event => onCollectionMutate() });To reproduce just set the store url to