[Answered ]-400. That’s an error. Your client has issued a malformed or illegal request. That’s all we know – Google App Engine Django App

1👍

You are making a GET call to /packages/ which is handled by the route definition packages_middleware(request).

In that function you have queries = request.data and the rest of your logic is dependent on queries. This document says request.data is for POST, PATCH, PUT. If that is correct, then that seems like where your error lies.

You can put a print statement just before and after that line and see if your App prints the statement after. That will help you confirm if that is the issue.

You should also print the contents of queries. Since you’re not actually sending a body with your GET request, it is possible that the rest of your logic fails because the value of queries is not what you’re expecting.

Leave a comment