Project

General

Profile

Actions

Bug #2371

closed

Broken export functions

Added by Alexander Watzinger 1 day ago. Updated about 5 hours ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
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 But it seems to work e.g. in other cases, e.g.

Because Bernhard, our API expert, is on vacation I will take a look myself.
Thanks to Peter for reporting,


Related issues 1 (1 open0 closed)

Blocks OpenAtlas - Feature #2372: API: Archiving OpenAtlas with ARCHEAcknowledged2024-10-22Actions
Actions #1

Updated by Alexander Watzinger 1 day ago

  • Description updated (diff)
Actions #2

Updated by Alexander Watzinger 1 day ago

  • Description updated (diff)
Actions #3

Updated by Alexander Watzinger 1 day 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

Actions #4

Updated by Bernhard Koschiček-Krombholz 1 day ago

Please set the default to {}. The old API_PROXY had an empty string as default because this kind of issues.

Actions #5

Updated by Alexander Watzinger about 6 hours ago

  • Blocks Feature #2372: API: Archiving OpenAtlas with ARCHE added
Actions #6

Updated by Alexander Watzinger about 5 hours 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

Also available in: Atom PDF