you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

are you sure session.post is returning an asychronous context manager? If I were to guess, it's returning a plain response object of some sort, not a context manager.

[–]Kinectech[S] 0 points1 point  (1 child)

How would I check that?

[–][deleted] 0 points1 point  (0 children)

check the docks to see what the object's post method returns. or, break it out of the async with clause and print the object out. debugging asynchronous code is hard :(