question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled Promise Rejection when Deleting Second Skill Question

See original GitHub issue

Describe the bug When deleting questions from a skill with two questions, deleting the second question fails.

To Reproduce Steps to reproduce the behavior:

  1. Create a skill with 2 questions. My skill was QvMG2klRKcaj
  2. Delete the first question
  3. 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

Screen Shot 2021-02-12 at 09 23 00

Screen Shot 2021-02-12 at 09 23 13

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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Rijuta-scommented, Feb 17, 2021

Ah, okay. Is this something you have time to fix in the next couple days?

I will try to fix it.

0reactions
U8NWXDcommented, Feb 16, 2021

Ah, okay. Is this something you have time to fix in the next couple days?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found