Ask coding questions

← Back to all posts
MissingSchema: Invalid Url ''
EricDaniel

how do i fix the error in get_AgeNat function, line 13-19. Says url isn't valid even though it looks fine when I print it in line 17?

Voters
EricDaniel
Comments
hotnewtop
SixBeeps

Try adding socc_link = socc_link.strip() before making the request. I have a feeling a stray whitespace character made it in there somehow.

EricDaniel

@SixBeeps Just tried it and got the same error, seems like there are no issues with whitespace. function works at https://replit.com/@EricDaniel/testsoccerway#main.py so im not sure whats wrong with it here