Actions
Bug #2371
closedBroken export functions
Start date:
2024-10-21
Estimated time:
Found in version:
Description
@Peter Andorfer kindly informed us about a (sometimes) broken turtle export.
I can confirm this at
I can confirm this at
- demo (https://demo.openatlas.eu/api/entity/652?format=turtle) and
- demo-dev (https://demo-dev.openatlas.eu/api/entity/221464?format=turtle)
- MAMEMS (https://mamems.openatlas.eu/api/entity/9511?format=turtle)
- CONNEC (https://connec.openatlas.eu/api/entity/14219?format=turtle)
Because Bernhard, our API expert, is on vacation I will take a look myself.
Thanks to Peter for reporting,
Updated by Alexander Watzinger 2 months ago
- Subject changed from Broken Turtle export function to Broken export functions
- Assignee changed from Alexander Watzinger to Bernhard Koschiček-Krombholz
I found the culprit, it wasn't Turtle specific but code that looked like:
if 'http' in app.config['PROXIES']
But app.config['PROXIES'] can be None (default) which than throws the error.
Simplest solution would be to set the default to an empty dict
app.config['PROXIES'] = {}
but because I'm not sure about possible side effects, I leave this decision for Bernhard when he returns.
I fixed it at the demo versions (and other instances) for now with setting this in production/instance.py
Please report in case someone needs this and has similar problems still. In that case I would think about a quicker solution, e.g. a fix release
Updated by Bernhard Koschiček-Krombholz 2 months ago
Please set the default to {}. The old API_PROXY had an empty string as default because this kind of issues.
Updated by Alexander Watzinger 2 months ago
- Blocks Feature #2372: API: Archiving OpenAtlas with ARCHE added
Updated by Alexander Watzinger 2 months ago
- Status changed from Assigned to Closed
- Assignee changed from Bernhard Koschiček-Krombholz to Alexander Watzinger
Thanks Bernhard for feedback, it is now fixed in the develop branch with the following line in config/default.py:
PROXIES: dict[str, str] = {}
Actions