GithubHelp home page GithubHelp logo

Comments (4)

wuzyzy avatar wuzyzy commented on June 1, 2024

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.

bobleegogogo avatar bobleegogogo commented on June 1, 2024

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.

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.

wuzyzy avatar wuzyzy commented on June 1, 2024

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.

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

Fixed. See ff3a50d.
If it works, please close the issue.

from ohsome2label.

bobleegogogo avatar bobleegogogo commented on June 1, 2024

thanks, the issue is fixed

from ohsome2label.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.