简体   繁体   English

TTransportException:无法发出HTTP请求-Evernote / iOS

[英]TTransportException: Could not make HTTP Request- Evernote/iOS

I am working on an iPad app that connects to Evernote to sync a user's notes to the app. 我正在开发一个iPad应用程序,该应用程序连接到Evernote,以将用户的笔记同步到该应用程序。 Everything works great on my development devices and all of our internal testers, but there are several external testers that are having an issue after they authenticate with Evernote. 在我的开发设备和我们所有的内部测试仪上,一切正常,但是在通过Evernote进行身份验证后,有几个外部测试仪出现问题。 When the app goes to make a call to the API, it returns a 当应用程序调用API时,它将返回一个

TTransportException: Could not make HTTP Request. TTransportException:无法发出HTTP请求。

Directly after calling [evernoteSession.authenticateWithViewController] successfully, I am calling [evernoteSession.userStore getUserWithSuccess] . 在成功成功调用[evernoteSession.authenticateWithViewController]之后,我将直接调用[evernoteSession.userStore getUserWithSuccess] This is where the user's are receiving the exception from evernote. 这是用户从evernote接收异常的地方。 Any ideas about why certain external testers would receive this error and not any of our internal testers or developers? 为什么某些外部测试人员会收到此错误,而我们的内部测试人员或开发人员却没有收到任何想法? Is there anything I can do to get more information about what is going wrong with the evernote API call? 我可以做些什么来获取有关evernote API调用出了什么问题的更多信息?

Thanks! 谢谢!

Is it possible that they are on a cellular connection and they have authorised Evernote for mobile data but not your app? 他们是否有可能通过蜂窝连接获得了Evernote的移动数据授权,但未授权您的应用?

In that case, I suspect they might be able to authenticate within Evernote but your app would then fail. 在这种情况下,我怀疑他们可能能够 Evernote中进行身份验证但是您的应用程序将失败。

Note also that this issue has come up a few times on the Evernote forums, eg: 另请注意,在Evernote论坛上已经多次出现此问题,例如:

Aug 2012 problem was checking authtoken == nil in the connect method. 2012年8月的问题是在connect方法中检查authtoken == nil

Feb 2013 Problem was doing getDefautNoteBook or listNotebooks in UI thread, needed to be in a background thread (according to Evernote employee). 2013年2月,问题是在UI线程中执行getDefautNoteBooklistNotebooks ,需要在后台线程中(根据Evernote员工)。

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

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