e.g. in applications/freeswitch/agents/freeswitch.coffee , save_uri_as must either (a) check on the return value and re-request the file if an error happened, or (b) save the data first, check for any error (esp. statusCode) and only write if CouchDB was OK.
If CouchDB has a problem (e.g. view timeout) then we end up outputting JSON (error message) instead of XML.
e.g. in applications/freeswitch/agents/freeswitch.coffee ,
save_uri_as
must either (a) check on the return value and re-request the file if an error happened, or (b) save the data first, check for any error (esp. statusCode) and only write if CouchDB was OK.If CouchDB has a problem (e.g. view timeout) then we end up outputting JSON (error message) instead of XML.