Skip to content

Having a problem getting my pytests to run successfully after push to GitHub #2402

Answered by tomchristie
writeson asked this question in Q&A
Discussion options

You must be logged in to vote

TypeError: Invalid type for url. Expected str or httpx.URL, got <class 'NoneType'>: None

The error is indicating that you've passed None instead of a valid argument to URL()...

It looks like that must be originating here...

app/helpers/cognito_helper.py:59: in call_cognito
    request = httpx.Request("GET", url=url, json=body)

Can't really help beyond that. Looks like httpx raising a valid error when passed an incorrect argument. (None for the url)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by writeson
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