Forums

502 backend error

Hi, I'm getting a 502 error in a very specific situation--when I try to append an object to a list, pythonanywhere hangs. There is only one object, and the list is empty, so it shouldn't be an issue of taking up too much resources. Anything from typing list += object, or list.append(object) causes it to load for a very long time and then respond with an error message. Any idea how to fix this?

Hi there, that's very strange. Is it a very large object? Could it be using up a lot of RAM? We have a 2GB limit...

No, I don't think it a very large object -- it is an instance of a model with not more than 10 fields. We managed to get around the issue by creating a copy of the model and adding that copy instead of the original. Thanks anyway!

Have a look in your error log to see what may be happening.