-
Notifications
You must be signed in to change notification settings - Fork 7
Broken for simple arrays #7
Comments
Do you have more info, e.g. an example for This works: const addresses = [
'Hamburg',
'Berlin',
'Juliusstraße 25, 22769 Hamburg'
];
let geoBatch = new GeoBatch();
geoBatch.geocode(addresses)
.on('data', (data) => console.log('geocodeResult', data))
.on('end', () => console.log('geocodeEnd')); I get three results, all are correct. |
I've run into a similar issue. The problem was that I had a syntax error in the |
I can’t remember, but I think @pmast and I discussed this. 😃 Not sure which array I used… Do you have test data to replicate, @Caerostris? |
The following code works as it should. It prints both results, and 'finished' at the end: In the following example, an error has been introduced in the In this example, the order of the faulty line and the In neither of the two examples the |
Ah, thanks! So we need a fix for this. :) |
So, the problem is that exceptions inside the setImmediate(() => {
throw new Error('Some error');
}); I could open a PR which try/catches exceptions in the |
Passing in an address array breaks. There is one address geocoded but not returned.
Example usage:
It works in version
1.1.0
, but not in version1.2.0
.The text was updated successfully, but these errors were encountered: