Unable to find JSON Schema ID /schemas/{id} #1371
Answered
by
oliverpool
oliverpool
asked this question in
Q&A
-
Where do I find the Schema ID to request its schema? When I request http://localhost:4433/schemas/loginFlow
I get a 404: {
"error": {
"code": 404,
"status": "Not Found",
"debug": "rid=\nerror=The request was malformed or contained invalid parameters\nreason=Unable to find JSON Schema ID: loginFlow\ndetails=map[]\ndebug=\n\ngithub.com/ory/kratos/schema.Schemas.GetByID\n\t/home/ory/schema/schema.go:38\ngithub.com/ory/kratos/schema.(*Handler).get\n\t/home/ory/schema/handler.go:76\ngithub.com/ory/kratos/x.NoCacheHandler.func1\n\t/home/ory/x/nocache.go:18\ngithub.com/julienschmidt/httprouter.(*Router).ServeHTTP\n\t/go/pkg/mod/github.com/julienschmidt/[email protected]/router.go:387\ngithub.com/ory/nosurf.(*CSRFHandler).handleSuccess\n\t/go/pkg/mod/github.com/ory/[email protected]/handler.go:199\ngithub.com/ory/nosurf.(*CSRFHandler).ServeHTTP\n\t/go/pkg/mod/github.com/ory/[email protected]/handler.go:156\ngithub.com/urfave/negroni.Wrap.func1\n\t/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:46\ngithub.com/urfave/negroni.HandlerFunc.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:29\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:38\ngithub.com/ory/kratos/x.glob..func1\n\t/home/ory/x/clean_url.go:12\ngithub.com/urfave/negroni.HandlerFunc.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:29\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:38\ngithub.com/urfave/negroni.(*Negroni).ServeHTTP\n\t/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:96\ngithub.com/gorilla/context.ClearHandler.func1\n\t/go/pkg/mod/github.com/gorilla/[email protected]/context.go:141\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2069\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2887\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1952\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371",
"message": "The requested resource could not be found"
}
} What should I use for the schema ID? Or am I misunderstanding something? Thank you!
|
Beta Was this translation helpful? Give feedback.
Answered by
oliverpool
May 23, 2021
Replies: 1 comment 3 replies
-
I think I found the issue. Requesting http://localhost:4433/schemas/default works. The Maybe the doc could be updated to better explain this 😄 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
oliverpool
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I found the issue. Requesting http://localhost:4433/schemas/default works.
The
schema
endpoint returns the stored identities according to the config (identity.default_schema_url
in my case).Maybe the doc could be updated to better explain this 😄