跳轉到內容

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

圖片

EOFError() raised for new notes


  • 請登入才能回覆
這個主題有2篇回覆

#1 Chase

Chase

  • 圓點圖片
  • Title: Member
  • Group: Members
  • 2 篇 文章總計

發表於 12 July 2012 - 03:57 AM

For some reason today, new notes started having issues when added via the Python SDK. Here's where the error is being raised. The function that's being called is createNote().

Relevant portion of trace:


createdNote = noteStore.createNote(authToken,note)
File "/usr/local/lib/python2.6/dist-packages/evernote/edam/notestore/NoteStore.py", line 4695, in createNote
return self.recv_createNote()
File "/usr/local/lib/python2.6/dist-packages/evernote/edam/notestore/NoteStore.py", line 4707, in recv_createNote
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
File "/usr/local/lib/python2.6/dist-packages/thrift/protocol/TBinaryProtocol.py", line 126, in readMessageBegin
sz = self.readI32()
File "/usr/local/lib/python2.6/dist-packages/thrift/protocol/TBinaryProtocol.py", line 203, in readI32
buff = self.trans.readAll(4)
File "/usr/local/lib/python2.6/dist-packages/thrift/transport/TTransport.py", line 63, in readAll
raise EOFError()
EOFError

Any ideas as to why this might be happening?

#2 SethH

SethH

  • Title: Evernote Employee
  • Group: Evernote Employee
  • 683 篇 文章總計

發表於 12 July 2012 - 04:30 AM

I don't think that this is a generic problem with the Python SDK - I'm able to run our sample code without a problem. Does the EDAMTest.py sample code work for you? What platform are you on?

#3 Chase

Chase

  • 圓點圖片
  • Title: Member
  • Group: Members
  • 2 篇 文章總計

發表於 12 July 2012 - 04:34 AM

Hi Seth! The weird thing is this was happening in a 2 hour period earlier when we had really high disk I/O. It's not happening anymore now that I look at the logs closely. This is running on Ubuntu 10.04 LTS in a VPS. The code is battle-tested and just started doing this randomly. Definitely not a problem with the SDK in general I'd imagine, was just wondering if you'd have ideas. It seems like it's tied to our high disk I/O since they were happening around the same time. Not sure why that would be though.




目前瀏覽這個主題的用戶:1 位

0 位會員, 1 位訪客, 0 位匿名會員

Clip to Evernote