Report ID: 1418273441 Unexpected status code 412

I tried Zotero's storage sync function. When syncing file from the WebDAV back to my computer, the progress just froze when it almost done. (It need to sync 107 files, and there's 100 files already done.) From the console output and Zotero's error report I get the following error:

[JavaScript Error: "[Exception... "'Unexpected status code 412 in Zotero.Sync.Storage.getStorageModificationTime()' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]"]

And some console output around this error:

zotero(3): Finishing download request 'HGQ2JVQS'

zotero(3): Finished requests: 1

zotero(3): Total requests: 7

zotero(3): Finishing download request '2KVTZQBZ'

zotero(3): Finished requests: 2

zotero(3): Total requests: 7

zotero(3): Finishing download request 'MAFN2A8D'

zotero(3): Finished requests: 3

zotero(3): Total requests: 7

zotero(3): Finishing download request '4N4V2GWG'

zotero(3): Finished requests: 4

zotero(3): Total requests: 7

zotero(1): Unexpected status code 412 in Zotero.Sync.Storage.getStorageModificationTime()

zotero(3): onStatusChange with '/home/kid/test/zotero/tmp/RHXAU8QI.zip.tmp could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.'

zotero(3): onStateChange

zotero(3): onStatusChange with '/home/kid/test/zotero/tmp/KTT5B4ZW.zip.tmp could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.'



Also, it gets no response when I press the "Cancel Storage Sync" button.
  • This is the error on the console when I press "Cancel Storage Sync":

    zotero(3): 'QueryInterface' => function(...){...}
    'message' => "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.getRequestHeader]"
    'result' => 2147746065
    'name' => "NS_ERROR_NOT_AVAILABLE"
    'filename' => "chrome://zotero/content/xpcom/utilities.js"
    'lineNumber' => 1193
    'columnNumber' => 0
    'location' ...
    'QueryInterface' => function(...){...}
    'language' => 2
    'languageName' => "JavaScript"
    'filename' => "chrome://zotero/content/xpcom/utilities.js"
    'name' => "anonymous"
    'lineNumber' => 1193
    'sourceLine' ...
    'caller' ...
    'QueryInterface' => function(...){...}
    'language' => 2
    'languageName' => "JavaScript"
    'filename' => "chrome://zotero/content/xpcom/storage.js"
    'name' => "anonymous"
    'lineNumber' => 256
    'sourceLine' ...
    'caller' ...
    'QueryInterface' => function(...){...}
    'language' => 2
    'languageName' => "JavaScript"
    'filename' => "chrome://zotero/content/xpcom/utilities.js"
    'name' => "_stateChange"
    'lineNumber' => 1317
    'sourceLine' ...
    'caller' ...
    'QueryInterface' => function(...){...}
    'language' => 2
    'languageName' => "JavaScript"
    'filename' => "chrome://zotero/content/xpcom/utilities.js"
    'name' => "anonymous"
    'lineNumber' => 990
    'sourceLine' ...
    'caller' ...
    'inner' ...
    'data' ...
    'initialize' => function(...){...}


    zotero(3): Already stopping download queue

    zotero(3): Already stopping download queue
  • If you restart Firefox and try syncing again, does this happen again?

    Also, could you tell us what kind of WebDAV server this is? A 412 HTTP error is...not common.
  • I realized the problem is casued by my webdav sync server, it reterned a HTTP Error 412 - Precondition failed. But zotero should not getting no response in any case.
  • The WebDAV server is Google app engine - Yes I'm porting PyFileServer to GAE so we can use it as file storage.

    The Error 412 may caused by the buggy server implementation. I'll investigate it.
Sign In or Register to comment.