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.

Where to catch Error: Please pass a valid aggregate id!

See original GitHub issue

Hi, I use Promise to handle command:

function handleCommand(cmd) {
    return new Promise((resolve, reject) => {
        domain.handle(cmd, err => {
            if (err) {
                reject(err);
            }
            resolve();
        });
    });
}

However the problem is when Error: Please pass a valid aggregate id! occurs then the whole process exits and the callback function is not called. Is this a bug or I’m doing it wrong way?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
adraicommented, Jul 12, 2019

good catch

1reaction
nanovcommented, Jul 12, 2019

Ok, i saw where the problem is. Will submit a fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error handling - Apollo GraphQL Docs
The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run.
Read more >
Why are aggregate functions not allowed in where clause
The reason you can't use SUM() in the WHERE clause is the order of evaluation of clauses. FROM tells you where to read...
Read more >
7 Handling PL/SQL Errors
With exceptions, you can handle errors conveniently without the need to ... SQL aggregate functions such as AVG and SUM always return a...
Read more >
try...catch - JavaScript - MDN Web Docs - Mozilla
The catch -block specifies an identifier ( e in the example above) that holds the value of the exception; this value is only...
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages ... Please have available for review the Microsoft SQL Server error...
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