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

(Android) TTransportationException No more data avaible #47

Open
mateuscfonseca opened this issue Nov 5, 2014 · 2 comments
Open

(Android) TTransportationException No more data avaible #47

mateuscfonseca opened this issue Nov 5, 2014 · 2 comments

Comments

@mateuscfonseca
Copy link

I already created various notes with the SDK . But when I try to attach a file I encountered some errors. I created a Resource with the mime type and set the Data property with a Data object with the body and body hash.I also added a Resource Attribute with the file name and setting the "attachment" property to false. I also appended the en-media tag on the note content.

On the sandbox site I can view the note, the photo even appears as a thumbnail on the list of notes. But the photo do not appears when I select the note from the note list on the site.

And when a try to load this specific note I always get some error, usually the TTransportException. Also get a SSL related error. And just once the note loaded and I could parsed the photo attached e check the ENML and it was alright.

If I create a note on the sandbox site, with the same photo, will load normaly.

Sorry for the english
sandbox error

error

@mateuscfonseca
Copy link
Author

I just noticed that when I set the attachment property of ResourceAttributes object to true instead of false, I could load the note. But on the documentation says that in order to the attachment appears inline the note I have to set that property to false.

@vRallev
Copy link
Contributor

vRallev commented May 29, 2015

Do you mind updating to the new version 2.0.0 and try again? Please take a look at the demo, which shows how to attach images to a note.

https://github.com/evernote/evernote-sdk-android/blob/master/demo/src/main/java/com/evernote/android/demo/task/CreateNewNoteTask.java

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

No branches or pull requests

2 participants