GIScience / GIScience/ohsome2label

ERROR ConnectionError when requesting from the server

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
53
Forks
5
PR merge metrics
No merged PRs in 30d

Description

It has been reported that one could get the following error:

![error](https://user-images.githubusercontent.com/33456076/144591132-aee588cf-f897-4368-a8c0-49951c6bea11.JPG)

when running `ohsome2label vector` from the server.

We found out this issue was related to the security certificate check in Python requests, especially via the server traffic.

One easy solution/walkaround is to change the following code in your repo:

https://github.com/GIScience/ohsome2label/blob/592186653a3be5b0977636c25e5c5eb1bd3bb94a/ohsome2label/utils.py#L22

just to disable the verification, while a better solution should be considered in the future:

`r = requests.get(api, params, verify=False)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.