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
API stopped working with struct.error: unpack requires a buffer of 1 bytes #27
Comments
I have the same problem, it just stopped working today, reproducible for me with python3.7 and python3.8. |
I think i've found the reason for this error. My hypothesis is that Evernote recently updated their API to throw an error for HTTP requests with duplicate Host headers. As it turns out, this Python 3 package duplicates the Host header for some requests. The result is this really obscure error. When I monkey patch the Thrift HTTP code to dedupe Host headers, my code works again. |
Found out it's because this SDK uses a (really) old version of thrift. The duplicate host problem in Thrift was seemingly fixed in apache/thrift@760511f#comments, 3.5 years ago |
How can I fixed it like yours. Thank you very much. |
Here's a gist with the monkey patch https://gist.github.com/mitchelljustin/46e5ce3e0ddfb2ee154ac9a6ee696ac1 Note, to be proper this SDK should be forked and updated to a later version of Thrift. I tried that but got all kinds of other errors I didn't want to fix. Unfortunately Evernote doesn't maintain this repo anymore. |
This is Evernote speaking. Thanks for reporting this issue! Our engineers are working on a solution, and we will report here when the update is available. |
… (fixes 216) Workaround proposed here Evernote/evernote-sdk-python3#27
Hey everyone. Thanks for your patience and info. (@mitchelljustin was on the money) We have just merged a patch for this, please let me know that it solves the issue or if any calls are still failing. |
It works fine, great. Thanks for members. |
@zonabi Thanks for the merge! Would it be possible to make a new release on pypi? |
@KostyaEsmukov a new version of the evernote3 package has been released on PyPI (1.25.14) Let us know if you run into any more issues. |
@zonabi Perfect, thank you! I can confirm that the uploaded version works. |
Update evernote-sdk-python3 to 1.25.14 to fix Evernote/evernote-sdk-python3#27
Hiya @zonabi @iafan this issue seems to be happening once again, even on the new version of this package Notably, it is not happening in sandbox mode, but IS happening in production. In case it's useful, we have thousands of users who depend on our integration with Evernote, and right now it's completely broken for all of them. |
Here's a stack trace:
|
Looks like the
This request is the same as it was yesterday, but broken now -- so probably a change to the evernote api to improperly return Access Denied? |
It's seems sites have change the permission for API |
The same error, when i call |
I'm seeing the same problem this morning. Trying to get the attention of Evernote Support: https://twitter.com/rdhyee/status/1381977939072311297 I just reported the issue with Evernote -- it's been filed as Ticket# 3296044 |
Evernote engineer here, acknowledging these issues. We are looking into it. |
@zonabi some other stuff from my debugging, in case it's useful:
|
@TristanH @heart5 @rdhyee @duguguiyu the issue should be resolved now, please let us know if that is not the case! |
@zonabi My application works again -- thank you! |
@zonabi yes! Seems to be fixed. Thanks for the quick turnaround :))) |
Update: Fixed as of 1/10/23 Running into the same issue as #27 (comment) (Access Denied) once again Stacktrace:
Debug info:
|
Facing the same issue again. |
I've had a long running job using the evernote python 3 API. It suddenly stopped working today. I am seeing the following errors:
Digging around random stack traces show that :
Is the API no longer worker or deprecated?
The text was updated successfully, but these errors were encountered: