开发者

App Engine Channel API's Javascript Client Isn't Using my onError Callback

开发者 https://www.devze.com 2023-03-30 03:16 出处:网络
I\'m using App Engine\'s Channel API to maintain a connection between a Chrome extension and an App Engine app. You can see my Channel-related code here: https://github.com/2cloud/Chrome/blob/3fe70262

I'm using App Engine's Channel API to maintain a connection between a Chrome extension and an App Engine app. You can see my Channel-related code here: https://github.com/2cloud/Chrome/blob/3fe70262ef69ae8286a057055f4108760560c47e/socket.js (The app is open source, so you can check out the reposit开发者_如何学Cory to get an idea of how it all fits together)

My issue is, for some reason, the 401 error that App Engine throws when a token expires isn't being sent to my onError listener. I've tried just logging the error object from within onError, outside of an if statement, and still got nothing. My conclusion was that onError isn't getting called when a 401 is thrown, as the documentation says it's supposed to.

Has anyone else seen this error? Does anyone else have an idea on how to fix it?


I've reproduced this bug and started work fixing it. http://code.google.com/p/googleappengine/issues/detail?id=5685

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号