Comments (4)
when running for large-sccale image download, one might come up with an requests.exceptions.ConnectionError
Error message:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='t0.tiles.virtualearth.net', port=80): Max retries exceeded with url: /tiles/a12020330203220030.png?g=854&mkt=en-US&token=your_token(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff69bf7ecf8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
44%|███████████████████████ | 11394/26174 [15:14<19:45, 12.47it/s]Potential solution:
add request status check and random sleep
Notice not to put your token in your issue. I just modified it for you.
Please put your config. I will reproduce your error and fix it.
from ohsome2label.
when running for large-sccale image download, one might come up with an requests.exceptions.ConnectionError
Error message:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='t0.tiles.virtualearth.net', port=80): Max retries exceeded with url: /tiles/a12020330203220030.png?g=854&mkt=en-US&token=your_token(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff69bf7ecf8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
44%|███████████████████████ | 11394/26174 [15:14<19:45, 12.47it/s]
Potential solution:
add request status check and random sleepNotice not to put your token in your issue. I just modified it for you.
Please put your config. I will reproduce your error and fix it.
Here is the config I used:
project:
name: DE_wastewater
workspace: ./DE_wastewater
project_time: 2020-07-21
task: segmentation
osm:
api: ohsome
url: https://api.ohsome.org/v1/elements/geometry
bboxes: [5.872,47.270,15.038,55.057]
tags:
- {'label': 'wastewater', 'key': 'man_made', 'value': 'wastewater_plant'}
timestamp: 2019-10-20
types: polygon
image:
img_api: bing
img_url: http://t0.tiles.virtualearth.net/tiles/a{q}.png?g=854&mkt=en-US&token={token}
api_token : ''
zoom: 17
from ohsome2label.
when running for large-sccale image download, one might come up with an requests.exceptions.ConnectionError
Error message:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='t0.tiles.virtualearth.net', port=80): Max retries exceeded with url: /tiles/a12020330203220030.png?g=854&mkt=en-US&token=your_token(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff69bf7ecf8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
44%|███████████████████████ | 11394/26174 [15:14<19:45, 12.47it/s]
Potential solution:
add request status check and random sleepNotice not to put your token in your issue. I just modified it for you.
Please put your config. I will reproduce your error and fix it.Here is the config I used:
project:
name: DE_wastewater
workspace: ./DE_wastewater
project_time: 2020-07-21
task: segmentationosm:
api: ohsome
url: https://api.ohsome.org/v1/elements/geometry
bboxes: [5.872,47.270,15.038,55.057]
tags:
- {'label': 'wastewater', 'key': 'man_made', 'value': 'wastewater_plant'}
timestamp: 2019-10-20
types: polygonimage:
img_api: bing
img_url: http://t0.tiles.virtualearth.net/tiles/a{q}.png?g=854&mkt=en-US&token={token}
api_token : ''
zoom: 17
Fixed. See ff3a50d.
If it works, please close the issue.
from ohsome2label.
thanks, the issue is fixed
from ohsome2label.
Related Issues (10)
- Copy-paste error in readme HOT 1
- Mistake in building detection config.yaml HOT 2
- Don't know how to proceed with "adding tf_record_from_coco.py to the ./ohsome2label/ directory" HOT 1
- shapely install in Windows HOT 1
- label erro with dev branch HOT 2
- ERROR ConnectionError when requesting from the server
- walkthrough setup.md tf version and geopandas installation error and fix. HOT 2
- Error in `ohsome2label image` command with Sentinel image from SentineHub HOT 5
- Buffering lines for segmentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ohsome2label.