I use a standard couple of lines of code to extract a key from an http get request and use it to get something from the data store, but I ran into a problem that I had not encountered before. This only happens in the live (deployed) version - there is no problem running the code on the dev server.
Code snippet:
imgId = self.request.args.get("img_id") imageInfo = db.get(imgId)
And an example error:
BadKeyError: Invalid string key ahFjeWJlcm5hdXRzcHJvamVjdHINCxIFSW1hZ2UY1oYDDA=. Details: Incorrect padding
If I register the imgId value right before db.get, this is correct (without adding the "=" from the debug message). Does anyone know what could be causing this?
Cerzi source share