ECONNRESET with organisation ID 891?
Opened this issue · 4 comments
thiesben commented
I'm getting a fetch error: ECONNRESET when requesting Data from 891. It's the only one I'm having trouble with. However, http://www.eco-public.com/ParcPublic/?id=891/CounterData works just fine.
derhuerst commented
Can't reproduce. It looks like a network issue.
const {counters: fetchCounters} = require('eco-counter-client')
const [counter] = await fetchCounters(891)
console.log(counter)
{
id: '200000071',
name: 'Saint_Colombier',
url: '',
coordinates: { latitude: 47.54806, longitude: -2.71873, country: 'fr' },
organisation: { id: 891, name: 'Vélo & Territoires' },
count: 17481,
periodStart: 2013-01-01T00:00:00.000Z,
periodEnd: 2019-12-31T00:00:00.000Z,
instruments: [ 201000071, 202000071 ],
photos: [
'https://www.eco-visio.net/Photos/100006551/13545305536280.jpg',
'https://www.eco-visio.net/Photos/100006551/13545305541721.jpg',
'https://www.eco-visio.net/Photos/100006551/15917057113100.jpg',
'https://www.eco-visio.net/Photos/100006551/13545305527532.jpg'
],
logo: 'https://www.eco-visio.net/Logos/891/1528116076975.jpg'
}
thiesben commented
have tried it a couple times and now switches between throwing the error and returning the data. However I only have the problem with this OrgID.
Anyway thanks!
derhuerst commented
Let‘s keep this open until it‘s fixed upstream.