Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yes. It happens to me as well. That's why I use the "answer my own question" flag quite often after I worked myself to the solution.
Ignore the random down-voters, embrace criticism and edit your question accordingly and you'll be fine. -
@SukMikeHok It's great that you solved it and that you actually took the time to articulate your question precisely!
I hope you also added your solution to SO so others can $$$profit. -
@sergiolarosa89 I relate to spending 2h writing a question for sure, saying everything you tried, trying to convince people you're not clueless
-
gungah676yHappened to me yesterday. The code was
return Promise.resolve(()=> {...})
Should have been
return Promise.resolve().then(()=> {...}) -
@gungah This looks convoluted though. I don't recommend mixing the flat async/await-syntax with the callback-based `then`-able syntax.
Depending on what your `...` stands for I think you rather want to do either:
return ...;
which is equivalent to: `return Promise.resolve(...);`
or
return new Promise((resolve, fail) => {
...
resolve()
});
18 hours can't fix a bug
go to stack overflow spend 2h writing the question
post question
of course get a downvote in less than 50 seconds
then i thought: hold on while people answer me here, let me try one more thing
i try one more thing
it works
EVERY TIME, JUST AFTER ASKING SOMEBODY FOR HELP, I SOLVE IT BY MYSELF A FEW MINUTES LATER.
DOES THIS HAPPEN TO ANYONE ELSE?
rant