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

kratos-keto-flask returns 404 instead of homepage. #51

Open
5 of 6 tasks
znorris opened this issue Aug 29, 2022 · 6 comments
Open
5 of 6 tasks

kratos-keto-flask returns 404 instead of homepage. #51

znorris opened this issue Aug 29, 2022 · 6 comments
Labels
bug Something is not working.

Comments

@znorris
Copy link

znorris commented Aug 29, 2022

Preflight checklist

Describe the bug

The example documentation says, "You will see a pretty welcome screen." However I get a 404 instead.

% curl -v http://localhost:8080/
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Type: application/json
< Vary: Origin
< Date: Mon, 29 Aug 2022 17:07:37 GMT
< Content-Length: 95
<
{"error":{"code":404,"status":"Not Found","message":"Requested url does not match any rules"}}
* Connection #0 to host localhost left intact

Reproducing the bug

  1. docker-compose up
  2. run curl -v http://localhost:8080/
  3. Get a 404 response code. If it were working, I'd expect a 200 response.

Relevant log output

No response

Relevant configuration

No response

Version

d8bca0e

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker Compose

Additional Context

No response

@znorris znorris added the bug Something is not working. label Aug 29, 2022
@dukeofcool199
Copy link

I got the same results

@yaroslaff
Copy link

Seems ory abandoned support for self-hosted version or kratos/keto and support only their online/paid service?
I found fief project is working well with python and flask (and has very responsive support), but I'd be happy to get successful results with ory products, because I like idea to have authentication inside small, standalone golang application with low memory requirements.

@znorris
Copy link
Author

znorris commented Nov 18, 2023

@yaroslaff Do you have a reference about Ory abandoning self-hosted Kratos or Keto? I've been busy working on other projects so I'm a bit out of touch. However, I don't believe this is the case. I see all the regular documentation and github projects available.

@yaroslaff
Copy link

@znorris I do not have any other references, only my guesses. But I see this ticket from Aug 30 (about problem which is very easy to reproduce) and still no reply.
I guess problem is very easy to solve (there could be no big problems in "hello world" examples) but for newbies it's blocking issue.

@Pterygoidien
Copy link

Hi, I have the same issue, and I am indeed a newbie in that domain since i'm only in the learning phase (originally frontend developper, i'm only starting in backend and microservices, so I don't know all the tools, including Ory ecosystem). Did somebody work around this ? It is indeed a blocking issue for me !

@mdross95
Copy link

mdross95 commented Dec 3, 2024

I found out that this was due to the following in the access-rules.yml file in the oathkeeper subdirectory. There is only one rule in the file that only matches one route:

  match:
    url: "http://127.0.0.1:8080/oathkeeper"

Changing the URL to a wildcard alleviated the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

5 participants