Skip to content

Error when executing a python requests post script

I’m not sure what i’m doing wrong with the script below, but i keep getting this error when i try to execute the script. any idea what i’m doing wrong? thanks! Answer Less familiar with the auth param , but from requests docs the auth param doesn’t get string as an input. It supposed t…

add task to running loop and run until complete

I have a function called from an async function without await, and my function needs to call async functions. I can do this with asyncio.get_running_loop().create_task(sleep()) but the run_until_complete at the top level doesn’t run until the new task is complete. How do I get the event loop to run unti…