fleetmap-reports 2.0.26 → 2.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.26",
3
+ "version": "2.0.27",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -366,6 +366,10 @@ async function invokeValhalla (route, i, chunk, country, threshold, results, ret
366
366
  } catch (e) {
367
367
  countError++
368
368
  if (--retry) {
369
+ if (e.error_code === 444) {
370
+ console.warn(e.error)
371
+ return
372
+ }
369
373
  console.error('retry', retry, e.message, (e.response && e.response.data) || url, 'deviceId',
370
374
  slice[0] && slice[0].deviceId, slice[0] && slice[0].address, slice[0] && slice[0].fixTime, country, 'chunk', chunk,
371
375
  'success', countSuccess, 'error', countError, lastSuccessDuration)