Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECONNRESET with organisation ID 891? #14

Open
thiesben opened this issue Jul 9, 2020 · 4 comments
Open

ECONNRESET with organisation ID 891? #14

thiesben opened this issue Jul 9, 2020 · 4 comments
Labels

Comments

@thiesben
Copy link

thiesben commented Jul 9, 2020

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
Copy link
Owner

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'
}

@derhuerst derhuerst changed the title OrgID 891 broken? ECONNRESET with organisation ID 891? Jul 9, 2020
@thiesben
Copy link
Author

thiesben commented Jul 9, 2020

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!

@thiesben thiesben closed this as completed Jul 9, 2020
@derhuerst
Copy link
Owner

Let‘s keep this open until it‘s fixed upstream.

@derhuerst derhuerst reopened this Jul 9, 2020
@derhuerst
Copy link
Owner

@thiesben Do you know if this is fixed by now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants