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

HTTP read timeout too short for New Jersey source #29

Closed
missinglink opened this issue Oct 19, 2016 · 4 comments
Closed

HTTP read timeout too short for New Jersey source #29

missinglink opened this issue Oct 19, 2016 · 4 comments

Comments

@missinglink
Copy link

missinglink commented Oct 19, 2016

2016-10-19 11:14:44,848 - cli.esridump - INFO - Built 2950 requests using resultOffset method
Traceback (most recent call last):
  File "/usr/local/bin/esri2geojson", line 9, in <module>
    load_entry_point('esridump==1.4.1', 'console_scripts', 'esri2geojson')()
  File "build/bdist.linux-x86_64/egg/esridump/cli.py", line 93, in main
  File "build/bdist.linux-x86_64/egg/esridump/dumper.py", line 365, in __iter__
esridump.errors.EsriDownloadError: ('Could not connect to URL', ReadTimeout(ReadTimeoutError("HTTPConnectionPool(host='geodata.state.nj.us', port=80): Read timed out. (read timeout=30)",),))

is it possible to increase read timeout=30 from the CLI?

@iandees
Copy link
Member

iandees commented Oct 19, 2016

It's not possible right now, but it can be.

@iandees iandees changed the title how to avoid ReadTimeoutError? HTTP read timeout too short for New Jersey source Oct 19, 2016
@missinglink
Copy link
Author

re: the title, I don't believe it's specific to the NJ source is it? I'm just using the pyesridump CLI with a URL as the first arg.

@iandees
Copy link
Member

iandees commented Oct 19, 2016

Yup, the New Jersey server is particularly slow so it's going to show this more obviously. The fix for this will be general to all servers, but the problem is specific to New Jersey.

@missinglink
Copy link
Author

👍

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

No branches or pull requests

2 participants