c2corg / c2corg/v6_api

Bug: New route with bad geometry

Open
#807 5 comments 0 reactions 0 assignees View on GitHub
blocking bug high prio
Dominant language
Python
Stars
26
Forks
28
Avg merge
4h
Merged PRs (30d)
9

Description

**Describe the bug**
See https://forum.camptocamp.org/t/suppression-dun-itineraire/145698/9

Two routes were added, with a gpx with extra informations ( which one to be determined). They make the API bug:

https://www.camptocamp.org/routes/1203651
https://www.camptocamp.org/routes/1203650

`Request failed with status code 500 `

Also, it makes the following error when trying to access it with a bot:

```
https://forum.camptocamp.org/t/suppression-dun-itineraire/145698/9?u=antoinem

```
and during the check_rc procedure:

```
Fix recent changes
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/campbot", line 10, in
sys.exit(main_entry_point())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/__main__.py", line 66, in main_entry_point
main(docopt(__doc__))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/__main__.py", line 75, in main
ask_before_saving=not args["--batch"])
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/checkers.py", line 165, in check_recent_changes
bot.fix_recent_changes(oldest_date, newest_date, lang, ask_before_saving)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/core.py", line 690, in fix_recent_changes
self._process_documents(get_documents(), processors, [lang, ], ask_before_saving)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/core.py", line 557, in _process_documents
for document in documents:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/core.py", line 684, in get_documents
document = self.wiki.get_wiki_object(document_id, document_type=document_type)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/core.py", line 133, in get_wiki_object
return constructor(self.campbot, self.get("/{}/{}".format(constructor.url_path, item_id)))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/campbot/core.py", line 67, in get
res.raise_for_status()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.camptocamp.org/routes/1203651
macbook-de-toinou-4:~ Toinou$

```

One should:
- find a way to delete those routes,
- avoid same problems in the future.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.