> the line numbers for the patch have changed slightly That is basically the answer. On CI runs we always bring in the latest SDK release, so we would have to both script the patching to run on CI (not terrible) and keep it up-to-date along with SDK updates (not something I wish to do).
For now I have been structuring my code so I can test Exceptions in non-Endpoints unit tests. I prefer to just refactor code and tests later (on our schedule) rather than have things break on CI unexpectedly. > We're currently working on getting this fixed Awesome, glad to hear it! cheers On Thursday, September 10, 2015 at 6:58:02 PM UTC-4, Nick (Cloud Platform Support) wrote: > > It's worth noting that the line numbers for the patch have changed > slightly, but the relevant code can still be patched. > > On Thursday, September 10, 2015 at 6:57:28 PM UTC-4, Nick (Cloud Platform > Support) wrote: >> >> Hey Michael, >> >> Thanks for bringing this up. We're currently working on getting this >> fixed. Is there any reason the patch suggested in the linked stackoverflow >> question won't help with your SDK for now? >> >> Best wishes, >> >> Nick >> >> On Thursday, August 20, 2015 at 1:44:22 AM UTC-4, Michael Spainhower >> wrote: >>> >>> Has anyone found a good workaround (not patching the library) for the >>> issue (https://code.google.com/p/googleappengine/issues/detail?id=10544) >>> that prevents testing Exceptions raised in Endpoints handlers? >>> >>> If you are unfamiliar with the issue, when an Endpoints handler raises >>> an Exception during an automated test, the content-length of the response >>> is not updated according to the content size of the serialized Exception >>> and raises "AssertionError: Content-Length is different from actual >>> app_iter length (512!=93)" >>> >>> Hopefully the real fix is released soon. Even though this is a dev and >>> testing, not production, issue, not being able to test Exception handling >>> is a pretty significant issue as far as non-production issues go. >>> >>> More context / See also: >>> http://stackoverflow.com/questions/24219654/content-length-error-in-google-cloud-endpoints-testing >>> >> -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a88a79a9-ef51-4624-9206-9e768207dc01%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
