Skip to content

Error exporting data #3337

@pedropombeiro

Description

@pedropombeiro

DO NOT USE THIS FORM TO REPORT THAT A PARTICULAR WEBSITE IS NOT SCRAPING/WATCHING AS EXPECTED

This form is only for direct bugs and feature requests todo directly with the software.

Please report watched websites (full URL and any settings) that do not work with changedetection.io as expected IN THE DISCUSSION FORUMS or your report will be deleted

CONSIDER TAKING OUT A SUBSCRIPTION FOR A SMALL PRICE PER MONTH, YOU GET THE BENEFIT OF USING OUR PAID PROXIES AND FURTHERING THE DEVELOPMENT OF CHANGEDETECTION.IO

THANK YOU

Describe the bug
When extracting the data of a watch as CSV, I get a 500 error. It seems like

redirect(url_for('ui_views.diff_history_page', uuid=uuid) + '#extract')
uses 'ui_views.diff_history_page' instead of 'ui.ui_views.diff_history_page'.

Version
Exact version in the top right area: 0.50.7

How did you install?

Docker

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'History' on a watch that is watching a number
  2. Click on 'Extract Data'
  3. Click on 'Extract as CSV'
  4. See error

! ALWAYS INCLUDE AN EXAMPLE URL WHERE IT IS POSSIBLE TO RE-CREATE THE ISSUE - USE THE 'SHARE WATCH' FEATURE AND PASTE IN THE SHARE-LINK!

This is a password-protected page. I'm also not able to use the share feature since my Docker container is running in a user bridge network.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image
changedetection_webserver  | 2025-07-27T12:25:10.952369436Z [2025-07-27 14:25:10,939] ERROR in app: Exception on /diff/69529652-ccd0-4ad6-b380-06e3fc7c41a1 [POST]
changedetection_webserver  | 2025-07-27T12:25:10.952418312Z Traceback (most recent call last):
changedetection_webserver  | 2025-07-27T12:25:10.952430173Z   File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 2190, in wsgi_app
changedetection_webserver  | 2025-07-27T12:25:10.952438755Z     response = self.full_dispatch_request()
changedetection_webserver  | 2025-07-27T12:25:10.952446238Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952453835Z   File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 1486, in full_dispatch_request
changedetection_webserver  | 2025-07-27T12:25:10.952464155Z     rv = self.handle_user_exception(e)
changedetection_webserver  | 2025-07-27T12:25:10.952474239Z          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952482171Z   File "/lsiopy/lib/python3.12/site-packages/flask_restful/__init__.py", line 298, in error_router
changedetection_webserver  | 2025-07-27T12:25:10.952489642Z     return original_handler(e)
changedetection_webserver  | 2025-07-27T12:25:10.952496797Z            ^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952503946Z   File "/lsiopy/lib/python3.12/site-packages/flask_cors/extension.py", line 176, in wrapped_function
changedetection_webserver  | 2025-07-27T12:25:10.952511610Z     return cors_after_request(app.make_response(f(*args, **kwargs)))
changedetection_webserver  | 2025-07-27T12:25:10.952521573Z                                                 ^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952532242Z   File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 1484, in full_dispatch_request
changedetection_webserver  | 2025-07-27T12:25:10.952540699Z     rv = self.dispatch_request()
changedetection_webserver  | 2025-07-27T12:25:10.952547962Z          ^^^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952557475Z   File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 1469, in dispatch_request
changedetection_webserver  | 2025-07-27T12:25:10.952584177Z     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
changedetection_webserver  | 2025-07-27T12:25:10.952592263Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952599654Z   File "/app/changedetection/changedetectionio/auth_decorator.py", line 32, in decorated_view
changedetection_webserver  | 2025-07-27T12:25:10.952607204Z     return func(*args, **kwargs)
changedetection_webserver  | 2025-07-27T12:25:10.952614600Z            ^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952622028Z   File "/app/changedetection/changedetectionio/blueprint/ui/views.py", line 113, in diff_history_page_build_report
changedetection_webserver  | 2025-07-27T12:25:10.952632551Z     redirect(url_for('ui_views.diff_history_page', uuid=uuid) + '#extract')
changedetection_webserver  | 2025-07-27T12:25:10.952642710Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952650689Z   File "/lsiopy/lib/python3.12/site-packages/flask/helpers.py", line 225, in url_for
changedetection_webserver  | 2025-07-27T12:25:10.952658812Z     return current_app.url_for(
changedetection_webserver  | 2025-07-27T12:25:10.952668324Z            ^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952678225Z   File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 1697, in url_for
changedetection_webserver  | 2025-07-27T12:25:10.952686160Z     return self.handle_url_build_error(error, endpoint, values)
changedetection_webserver  | 2025-07-27T12:25:10.952694832Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952705081Z   File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 1686, in url_for
changedetection_webserver  | 2025-07-27T12:25:10.952713155Z     rv = url_adapter.build(  # type: ignore[union-attr]
changedetection_webserver  | 2025-07-27T12:25:10.952720379Z          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
changedetection_webserver  | 2025-07-27T12:25:10.952727419Z   File "/lsiopy/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
changedetection_webserver  | 2025-07-27T12:25:10.952734823Z     raise BuildError(endpoint, values, method, self)
changedetection_webserver  | 2025-07-27T12:25:10.952742072Z werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'ui_views.diff_history_page' with values ['uuid']. Did you mean 'ui.ui_views.diff_history_page' instead?

Desktop (please complete the following information):

  • OS: macOS
  • Browser edge
  • Version 138.0.3351.95 (Official build) (arm64)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions