question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server

See original GitHub issue

A clear and concise description of what the bug is.

How to reproduce the bug

  1. Go to ‘.Data …’
  2. Click on ‘.Databases…’
  3. Scroll down to ‘…’ Trying to list database
  4. See error perset_app | 81.220.237.14 - - [08/Jun/2022:20:04:52 +0000] “GET /static/assets/images/filter-results.svg HTTP/1.1” 404 0 “https://superset.kdinh.fr/databaseview/list/?pageIndex=0&sortColumn=expose_in_sqllab&sortOrder=desc” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0” superset_app | 81.220.237.14 - - [08/Jun/2022:20:04:54 +0000] “GET /api/v1/database/?q=(order_column:expose_in_sqllab,order_direction:asc,page:0,page_size:25) HTTP/1.1” 200 529 “https://superset.kdinh.fr/databaseview/list/?pageIndex=0&sortColumn=expose_in_sqllab&sortOrder=asc” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0” superset_app | HTTPException superset_app | Traceback (most recent call last): superset_app | File “/usr/local/lib/python3.8/site-packages/flask/app.py”, line 1516, in full_dispatch_request superset_app | rv = self.dispatch_request() superset_app | File “/usr/local/lib/python3.8/site-packages/flask/app.py”, line 1502, in dispatch_request superset_app | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) superset_app | File “/usr/local/lib/python3.8/site-packages/flask/app.py”, line 515, in <lambda> superset_app | view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950 superset_app | File “/usr/local/lib/python3.8/site-packages/flask/scaffold.py”, line 332, in send_static_file superset_app | return send_from_directory( superset_app | File “/usr/local/lib/python3.8/site-packages/flask/helpers.py”, line 700, in send_from_directory superset_app | return werkzeug.utils.send_from_directory( # type: ignore superset_app | File “/usr/local/lib/python3.8/site-packages/werkzeug/utils.py”, line 847, in send_from_directory superset_app | raise NotFound() superset_app | werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. superset_app | 2022-06-08 20:04:54,173:WARNING:superset.views.base:HTTPException superset_app | Traceback (most recent call last): superset_app | File “/usr/local/lib/python3.8/site-packages/flask/app.py”, line 1516, in full_dispatch_request superset_app | rv = self.dispatch_request() superset_app | File “/usr/local/lib/python3.8/site-packages/flask/app.py”, line 1502, in dispatch_request superset_app | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) superset_app | File “/usr/local/lib/python3.8/site-packages/flask/app.py”, line 515, in <lambda> superset_app | view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950 superset_app | File “/usr/local/lib/python3.8/site-packages/flask/scaffold.py”, line 332, in send_static_file superset_app | return send_from_directory( superset_app | File “/usr/local/lib/python3.8/site-packages/flask/helpers.py”, line 700, in send_from_directory superset_app | return werkzeug.utils.send_from_directory( # type: ignore superset_app | File “/usr/local/lib/python3.8/site-packages/werkzeug/utils.py”, line 847, in send_from_directory superset_app | raise NotFound() superset_app | werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Expected results

what you expected to happen. It should list database defined

Actual results

no databases listed what actually happens.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

(please complete the following information):

  • browser type and version:
  • superset version: superset version
  • python version: python --version
  • node.js version: node -v
  • any feature flags active:

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
JunTechcommented, Jul 22, 2022

i tried to change features SESSION_COOKIE_SAMESITE to Lax,but not work,it still cause error not found. GET /ws HTTP/1.1[/home/ryan/anaconda3/envs/superset/lib/python3.8/site-packages/werkzeug/routing.py>>>path_info:[/ws],>>>[None]]>>>[True]>>>[None]>>>[None] [/home/ryan/anaconda3/envs/superset/lib/python3.8/site-packages/werkzeug/routing.py>>>path:[|/ws]] 2022-07-22 09:28:35,152:WARNING:superset.views.base:HTTPException Traceback (most recent call last): File “/home/ryan/anaconda3/envs/superset/lib/python3.8/site-packages/flask/app.py”, line 1516, in full_dispatch_request rv = self.dispatch_request() File “/home/ryan/anaconda3/envs/superset/lib/python3.8/site-packages/flask/app.py”, line 1492, in dispatch_request self.raise_routing_exception(req) File “/home/ryan/anaconda3/envs/superset/lib/python3.8/site-packages/flask/app.py”, line 1474, in raise_routing_exception raise request.routing_exception # type: ignore File “/home/ryan/anaconda3/envs/superset/lib/python3.8/site-packages/flask/ctx.py”, line 376, in match_request result = self.url_adapter.match(return_rule=True) # type: ignore File “/home/ryan/anaconda3/envs/superset/lib/python3.8/site-packages/werkzeug/routing.py”, line 2048, in match raise NotFound()

1reaction
khanh78180commented, Jul 18, 2022

Hi,

Thank a lot I change the parameter SESSION_COOKIE_SAMESITE and it is OK now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask unable to capture 404 errors, as for some reason it ...
I just want to account for URLs that are not valid endpoints and redirect to the home page as a consequence, but it...
Read more >
Python werkzeug.exceptions.NotFound() Examples
This page shows Python examples of werkzeug.exceptions.NotFound. ... was not able to create a URL ' 'adapter for request independent URL matching.
Read more >
HTTP Exceptions — Werkzeug Documentation (2.2.x)
If you want to hook in a different exception page to say, a 404 status code, ... def application(request): try: return view(request) except...
Read more >
404. That's an error. The requested URL was not found on this ...
As you might know, a 404 error is "File not found." This can happen when a file is deleted or there is an...
Read more >
The requested URL was not found on the server. If you ...
WARNING in errors: Request resulted in 404 Not Found: The requested URL was not found on the server. If you entered the URL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found