Unhandled Promise Rejection when Deleting Second Skill Question
See original GitHub issueDescribe the bug When deleting questions from a skill with two questions, deleting the second question fails.
To Reproduce Steps to reproduce the behavior:
- Create a skill with 2 questions. My skill was
QvMG2klRKcaj
- Delete the first question
- Delete the second question
Observed behavior The second question fails to delete, and a console error appears.
Expected behavior Successful deletion and no error.
Screenshots
Desktop (please complete the following information; delete this section if the issue does not arise on desktop):
- OS: macOS
- Browser: Firefox 85, Chrome 88
Additional context
Console logs:
Unhandled Promise rejection: Expected question_count to be a non-negative integer, received -1 ; Zone: <root> ; Task: Promise.then ; Value: Expected question_count to be a non-negative integer, received -1 undefined zone.js:690:28
Angular 13
addEventListener index.module.js:1
handle Angular
RxJS 7
jQuery 2
Angular 12
jQuery 6
RxJS 20
e Angular
toPromise RxJS
_editQuestionSkillLinks editable-question-backend-api.service.ts:177
e Angular
_editQuestionSkillLinks editable-question-backend-api.service.ts:167
editQuestionSkillLinks editable-question-backend-api.service.ts:213
e Angular
editQuestionSkillLinks editable-question-backend-api.service.ts:212
deleteQuestionFromSkill questions-list.directive.ts:424
Angular 5
jQuery 2
Angular 5
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Why do I get unhandled promise rejection in this situation?
I understand that Promise. all() considers any returned non-promise value as a resolved promise.
Read more >Unhandled promise rejection because of createConnection ...
It would on the timing of initial promise getting rejected. catch is deleted from connection after initial connection is rejected. Try adding a ......
Read more >Handling those unhandled promise rejections with JS async ...
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was ......
Read more >Oracle Digital Assistant Known Issues - Cloud
Utterances for Q&A skill not matching properly in the digital assistant. ... in the beforeDisplay delegate, an unhandled promise rejection is thrown.
Read more >48 answers on StackOverflow to the most popular Angular ...
These questions were chosen by the highest score received. ... zone.js:461 Unhandled Promise rejection: Template parse errors: Can't bind to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will try to fix it.
Ah, okay. Is this something you have time to fix in the next couple days?