Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict note data while fetchFilteredSyncChunk #142

Open
lijuncode opened this issue Mar 12, 2017 · 0 comments
Open

Conflict note data while fetchFilteredSyncChunk #142

lijuncode opened this issue Mar 12, 2017 · 0 comments

Comments

@lijuncode
Copy link

lijuncode commented Mar 12, 2017

func syncChunkFilter() -> EDAMSyncChunkFilter {
    let filter = EDAMSyncChunkFilter()
    filter.includeNotes = NSNumber(value: true)
    filter.notebookGuids = Set(arrayLiteral: bookGuid)
    return filter
  }

storeClient.fetchFilteredSyncChunk(afterUSN: 39370, maxEntries: 99999, filter: syncChunkFilter()) { (chunk, error) in
      if let chunk = chunk {
        printLog(message: "\(chunk)")
      }

      if let error = error {
        printLog(message: error.localizedDescription)
      }
    }

If I set the notebookGuids, it thrown the error:

Error Domain=ENErrorDomain Code=8 "Conflict note data." 
UserInfo={NSLocalizedDescription=Conflict note data., EDAMErrorCode=10, parameter=notebookFilter}

if I don't set the notebookGuids, it don't thrown this error, and can fetch the syncChunk success. why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant