Project

General

Profile

Actions

Bug #2057

closed

API: proxy for rdflib

Added by Bernhard Koschiček-Krombholz about 1 year ago. Updated about 1 year ago.

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

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 #1

Updated by Bernhard Koschiček-Krombholz about 1 year ago

  • Tracker changed from Feature to Bug
  • Status changed from Assigned to Closed
  • Target version changed from 7.17.0 to 7.16.0
  • Found in version set to 7.15.0

Fixed.
If OpenAtlas lies behind a proxy, add the following to instance/production.py :

API_PROXY = 'http://proxy.example:8899'
Actions #2

Updated by Bernhard Koschiček-Krombholz about 1 year ago

  • Subject changed from API: proxy for rdf libs to API: proxy for rdflib
Actions

Also available in: Atom PDF