Skip to content

Ory Client Returning 404 #288

Answered by DanielNwaeze
DanielNwaeze asked this question in Q&A
Discussion options

You must be logged in to vote

i found the issue. it comes from this code i used from the docs:

configuration = ory_client.Configuration(
    host = "https://heuristic-williamson-a1n21rai5m.projects.oryapis.com/"
)
# Configure Bearer authorization: oryAccessToken
configuration = ory_client.Configuration(
    access_token = 'ory_pat_3gmTzwvFjms3vuSehEKS2JG1UxoX6U5a'
)

basically, what this ends up doing is overwriting the configuration with only access taken as the resource.
doing this instead fixes the issue:

configuration = ory_client.Configuration(
    host = "https://heuristic-williamson-a1n21rai5m.projects.oryapis.com/",
    access_token = 'ory_pat_3gmTzwvFjms3vuSehEKS2JG1UxoX6U5a'
)

here, i am making one configur…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@vinckr
Comment options

@DanielNwaeze
Comment options

@vinckr
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants