#have you tried outputting `gc memfree `
1 messages · Page 1 of 1 (latest)
@leaden magnet so it hung just have the HTTP request, memory immediately before that was fine & consistent with the ~30 minutes prior.
memory free: 69040
Get flights...
Retrieving data...Reply is OK!
I'll run it again and add a few extra print statements
So if I enable debug=True on the MatrixPortal object, it hangs in the middle of the HTTP request.
memory free: 69456
Get flights...
Retrieving data...Headers: {'server': 'Werkzeug/2.2.2 Python/3.8.16', 'date': 'Mon, 09 Jan 2023 19:23:37 GMT', 'content-type': 'application/json', 'content-length': '315', 'connection': 'close'}
Reply is OK!
it should output the response right after that, but thats where it hangs
Unfortunately I don't have any further ideas for troubleshooting. It might be worth trying to work with requests directly in your code instead of using matrix portal library to see if you can isolate further where the problem comes. I think requests has a timeout functionality iirc, maybe the portal library isn't setting that by default?