Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to load some places #80

Open
vicpsl opened this issue Oct 8, 2024 · 0 comments
Open

Fail to load some places #80

vicpsl opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vicpsl
Copy link
Contributor

vicpsl commented Oct 8, 2024

Some places cannot be loaded and also fail navigation in the search results pagination.

Places with descriptions (table: place_description, column: content) containing an unbalanced parenthesis cause a Python regex exception:

Python failing at: file "./app/api/place_description/facade.py", line 62
Python code failing: res['attributes']['content'] = re.sub(match, rewrite_link_target(insee_code, label), res['attributes']['content'])
Python failing with error: source.error("unbalanced parenthesis")

Example:

loading place P88740001 returns empty screen and XHR error:
image

This is due to the following description:

image

The unbalanced closing bracket within the tag fails regex.

@vicpsl vicpsl added the bug Something isn't working label Oct 8, 2024
@vicpsl vicpsl self-assigned this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant