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
We have migrated from the IOS evernote sdks Migration_from_SDK_1_x.md to evernote-cloud-sdk-ios to support the 64 bit architecture for our Daily Notes app.
After migrating everything is working fine except the download of resource data.
When we are trying to download the attachments(images) using ENNoteStoreClient class's getResourceDataWithGuid: API, we get the following error all the time.
We then extract the required EDAMNote from the syncChunk.
if we try to download the resource associated with this EDAMNote using “getResourceDataWithGuid:” API, it always returns the error. This was working fine in earlier version. Here is the code snippet.
We have also observed the following log in the console put up by the SDK before getting this error.
Skipping field:<FATField: 0x16ab3940; index = 0; type = 16; optional = NO; name = success; > due to type mismatch (received:11).
We have tried this procedure in the sample app and observed the same behaviour.
The text was updated successfully, but these errors were encountered:
Reported from Daily Notes Dev team:
We have migrated from the IOS evernote sdks Migration_from_SDK_1_x.md to evernote-cloud-sdk-ios to support the 64 bit architecture for our Daily Notes app.
We have followed the procedure mentioned in the guide(https://github.com/evernote/evernote-cloud-sdk-ios/blob/master/Migration_from_SDK_1_x.md https://github.com/evernote/evernote-cloud-sdk-ios/blob/master/Migration_from_SDK_1_x.md) to migrate.
After migrating everything is working fine except the download of resource data.
When we are trying to download the attachments(images) using ENNoteStoreClient class's getResourceDataWithGuid: API, we get the following error all the time.
Error Domain=ENErrorDomain Code=1 "Missing result: getResourceData failed: unknown result" UserInfo=0x16b40490 {NSLocalizedDescription=Missing result: getResourceData failed: unknown result}
Steps to Reproduce
Below is the code snippet for getting the EDAMNote and then getting the EDAMResource from it .
ENNoteStoreClient *noteStore=[ENSession sharedSession].primaryNoteStore;
EDAMSyncChunkFilter *filter=[[EDAMSyncChunkFilter alloc]init];
filter.includeNotes = @yES;
filter.includeNoteResources = @yES;
filter.includeNoteAttributes = @yES;
filter.includeNotebooks = @yES;
filter.includeTags = @yES;
filter.includeSearches = @no;
filter.includeResources = @no;
filter.includeLinkedNotebooks = @no;
filter.includeExpunged = [NSNumber numberWithBool:!fullSunc];
filter.includeNoteApplicationDataFullMap = @yES;
filter.includeResourceApplicationDataFullMap = @no;
filter.includeNoteResourceApplicationDataFullMap = @yES;
filter.requireNoteContentClass = nil;
[noteStore getFilteredSyncChunkAfterUSN:currentUSN
maxEntries:255
filter:filter
success:^(EDAMSyncChunk *syncChunk)
{
completionHandler(syncChunk,nil);
}
failure:^(NSError *error)
{
completionHandler(nil,error);
}];
}
We then extract the required EDAMNote from the syncChunk.
EDAMResource *resource = self.evernoteResource;
ENNoteStoreClient *noteStore = [ENSession sharedSession].primaryNoteStore;
[noteStore getResourceDataWithGuid:resource.guid success:^(NSData *data)
{
} failure:^(NSError *error)
{
}];
}
Error Domain=ENErrorDomain Code=1 "Missing result: getResourceData failed: unknown result" UserInfo=0x16b40490 {NSLocalizedDescription=Missing result: getResourceData failed: unknown result}
We have also observed the following log in the console put up by the SDK before getting this error.
Skipping field:<FATField: 0x16ab3940; index = 0; type = 16; optional = NO; name = success; > due to type mismatch (received:11).
We have tried this procedure in the sample app and observed the same behaviour.
The text was updated successfully, but these errors were encountered: