简体   繁体   English

在Evernote列表上获取错误笔记本API-Javascript / Node.Js

[英]Getting error on Evernote listNotebooks API - Javascript / Node.Js

My web app in importing Evernote notebooks of a user to visualize them as a network. 我的Web应用程序,用于导入用户的Evernote笔记本以将其可视化为网络。

Everything works fine with a sandbox version, but once I try to do it on the production server, when I do 沙盒版本一切正常,但是一旦我尝试在生产服务器上进行操作,

noteStore.listNotebooks noteStore.list笔记本

I get the following err: 我得到以下错误:

{ errorCode: 8, message: 'authenticationToken', rateLimitDuration: null } {errorCode:8,消息:“ authenticationToken”,rateLimitDuration:null}

You can see the code on https://github.com/noduslabs/infranodus/blob/evernote/routes/imports.js#L428 您可以在https://github.com/noduslabs/infranodus/blob/evernote/routes/imports.js#L428上查看代码

My developer API is activated on the main server (at least I requested it a few months ago and received a confirmation of that). 我的开发人员API已在主服务器上激活(至少几个月前我请求了它,并得到了确认)。 My developer API username is infranodus. 我的开发人员API用户名是infranodus。

ALso, the oAuthAccessToken also seems to be obtained and transmitted inside my app. 同样,oAuthAccessToken似乎也已在我的应用程序中获取和传输。

Could you please tell me why this error pops up and how can I extract the notebook list – both private and public ones for the user? 您能否告诉我为什么会弹出此错误,以及如何提取笔记本列表(用户的私人和公共列表)?

Thank you for your help! 谢谢您的帮助!

How did you get the token ? 您是如何获得令牌的? Is it a dev token or an oauth one ? 是开发令牌还是oauth令牌? In both cases make sure that they were issued by the production server and not the sandbox one (ie you can't use a sandbox token in production environment). 在这两种情况下,请确保它们是由生产服务器而非沙盒服务器发出的(即,您不能在生产环境中使用沙盒令牌)。

If it's a prod token, I'd suggest to open a support ticket asking the Evernote team to check your credentials : https://dev.evernote.com/support/ (manage an api key) 如果它是产品令牌,建议您打开支持通知单,要求Evernote团队检查您的凭据: https : //dev.evernote.com/support/ (管理api密钥)

Another suggestion : get a prod token ( https://www.evernote.com/api/DeveloperToken.action ) and use it instead of your oauth token. 另一个建议:获取产品令牌( https://www.evernote.com/api/DeveloperToken.action )并使用它代替您的oauth令牌。 If it works then you have a problem with your API key (and you should open a support ticket as suggested above). 如果可以,则您的API密钥有问题(并且您应该按照上面的建议打开支持凭单)。 If it does not work then there's an issue with your code. 如果它不起作用,则说明您的代码有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM