You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I turned up debugging levels and found that AWS was returning an XML document that didn't have a <NumSearchableDocs>NNNNN</NumSearchableDocs> element. I dug a bit deeper and found the API says that a few of the returned elements are not "required". In particular the section under "DomainStatus > NumSearchableDocs" in this pdf: http://awsdocs.s3.amazonaws.com/cloudsearch/2011-02-01/cloudsearch-dg-2011-02-01.pdf
Looking into cloudsearch/domain.py:update_from_data(), I see that many of the elements that are listed as optional are using the data['key'] syntax instead of the data,get('key', SOME_SANE_DEFAULT?) syntax. Not sure how this team would define a "sane" default?
Here is what the faulty response looked like when it came in over the wire:
During a recent route53 outage, I was seeing errors coming from the lookup of a CloudSearch domain.
'import boto; boto.connect_cloudsearch().lookup("VALID_DOMAIN")'
I turned up debugging levels and found that AWS was returning an XML document that didn't have a
<NumSearchableDocs>NNNNN</NumSearchableDocs>
element. I dug a bit deeper and found the API says that a few of the returned elements are not "required". In particular the section under "DomainStatus > NumSearchableDocs" in this pdf: http://awsdocs.s3.amazonaws.com/cloudsearch/2011-02-01/cloudsearch-dg-2011-02-01.pdfLooking into cloudsearch/domain.py:update_from_data(), I see that many of the elements that are listed as optional are using the data['key'] syntax instead of the data,get('key', SOME_SANE_DEFAULT?) syntax. Not sure how this team would define a "sane" default?
Here is what the faulty response looked like when it came in over the wire:
The text was updated successfully, but these errors were encountered: