Open zrothberg opened 7 years ago
Thanks for the report @zrothberg. Any stacktrace in your logs?
This is one I snuck by it. https://gist.github.com/zrothberg/8cb79269c525f309ba72f3238e82c2d1
This one is the one I was reffering too in the post https://gist.github.com/zrothberg/5088984543ad182afddfd6ea7b2d4ded
(I don't know how to imbed gists)
here are some other values I managed to add anything before 1900 in the year would not come back out. The issue only seems to affect years. Also Datastore has a pretty robust knowledge of leap years.
So some funny things happen if you insert a date property before 1900. NDB half lets you put the value in the database but ProtoRPC will not return it from the database. Which leads to some weird behavior.
class Patient(EndpointsModel):
@endpoints.api(name='patient', version='vGDL', description='API for patient') class PatientApi(remote.Service):
First it throws a 503 when storing a value before hand but it succeeded at putting it Second is it looks up all queries that contain this entity The only solution when this happens seems to be deleting the entity. Its simple enough to work around by raising a bad request exception. It just seems tedious to do everytime I add a date.