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.

async callback not calling properly

See original GitHub issue

I’m using google map places api to search for places and then insert that places into mongodb using nodejs. For every hit on google map api, it will give 60 results which is splitted into 3 pages. So first time i will only get 20 results. I also want to get another 40 results from that api. To get all this 60 results i’m using async.each, but i’m just getting first 20 results and then no response from nodejs. How do i insert all the 60 results into mongodb? Please help me. Reply as soon as possible.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
aearlycommented, Apr 26, 2016

He’s giving your pseudo-code, not the exact solution. You’ll have to handle the next page token for it to work.

Anyway, closing this since it doesn’t appear to be an issue with Async.

0reactions
nasr18commented, Apr 27, 2016

I fixed my problem without using async. Anyway thanks for your time @ex1st

I love async.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Async callback is called but not executed sometimes
In my View code behind, I call a method in the View Model to get value. However the async callback is not called....
Read more >
How to Handle Async Callbacks in JavaScript...Without ...
I want to return that, but how can I? We can't return something from an asynchronous function call!" That's a great question.
Read more >
Node.js Async Best Practices & Avoiding the Callback Hell
This post covers what tools and techniques you have at your disposal when handling Node.js asynchronous operations. Learn how to avoid the ...
Read more >
Callback Functions | Async-Await | Promises - Enlear Academy
Usually, JavaScript codes run synchronously and synchronous operations wait for the previous operations to be completed no matter how much longer it takes....
Read more >
How to use promises - Learn web development | MDN
In the last article, we talked about the use of callbacks to implement asynchronous functions. With that design, you call the asynchronous ......
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