Failed generation PDF, invalid URL

What I’m trying to do:
Im trying to connect my python script to anvil and im keep getting this type of error.

What I’ve tried and what’s not working:
I ve tried reinstal uplink, rewrite another code but im still getting same results
Code Sample:
in do_call raise error_from_server
anvil._server.AnvilWrappedError: CallMethodException: 'PDF generation failed: calling method: Page.navigate error: Cannot navigate to invalid URL

Welcome to the Forum!

The volunteers here would love to help you. But your “Code Sample” will need to contain your actual Python code, not just the error message it produces. That’s the only way we’ll be able to see it.

Please remember to wrap your code in
``` python

```
Otherwise, the indentation will disappear. Python depends on that indentation, and so do we.