fleetmap-reports 2.0.26 → 2.0.28

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.28",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -365,6 +365,10 @@ async function invokeValhalla (route, i, chunk, country, threshold, results, ret
365
365
  })
366
366
  } catch (e) {
367
367
  countError++
368
+ if (e.response && e.response.data && e.response.data.error_code === 444) {
369
+ console.warn(e.response.data.error)
370
+ return
371
+ }
368
372
  if (--retry) {
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,