Project

General

Profile

Actions

Bug #2057

closed

API: proxy for rdflib

Added by Bernhard Koschiček-Krombholz 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2023-09-07
Estimated time:
Found in version:
Cooperation:

Description

There is a problem with RDF export (timeout), if OpenAtlas server is behind a proxy (ARZ servers and GitHub actions).

Since the rdflib uses urlib.requests the proxy has to be declared in this way:

import os
os.environ['http_proxy'] = 'http://proxy.example:8899'
os.environ['https_proxy'] = 'http://proxy.example:8899'

Source:
https://stackoverflow.com/questions/72821141/forcing-libraries-that-use-requests-library-to-use-my-proxy-explicitly-defined-i
Actions

Also available in: Atom PDF