I published a Feature Layer using the arcgis Python API with a custom definition, but I am not able to query it. When I put this layer on the map I keep getting 400 errors, saying "Unable to perform query. Please check your parameters.", which is not very helpful. I figured out the error goes away when I remove the 'geometry' part of the query and I get back all the results. But that doesn't help me display it on a map.
Is there something possibly wrong with my definition when I create the service, or something else?