我正在使用 Mac 并使用 CodeStream 版本 0.50.0-55 运行 VSCode 1.32.3。 我也试过 CodeStream 版本 0.35.0-54
我尝试登录,它在WebviewPanel: Completed posting webview/focus/didChange to the webview
的循环中停留了一段时间,然后超时并显示以下错误消息和堆栈跟踪:
~/.vscode/extensions/codestream.codestream-0.50.0/dist/extension.js:1:12234
Error: CodeStream: Login failed:
request to http://api.codestream.com/no-auth/login failed, reason: connect ETIMEDOUT
[2019-03-27 14:43:39:169] [3] CodeStreamSession.logout — signInFailure
[2019-03-27 14:43:39:170] [3] CodeStreamSession.logout completed • 0 ms
[2019-03-27 14:43:39:170] module.exports.onWebviewRequest.e.onIpcRequest
Error: UNKNOWN
[2019-03-27 14:43:39:196] WebviewPanel: Completed posting response(wv:2:qPG9VCtmQEOqilWkaPF3Gw) to the webview
CodeStream 代理显示以下错误:
[Error - 11:23:36 AM] [2019-03-27 15:23:36:182] ClientRequest.<anonymous>
FetchError: request to https://api.codestream.com/no-auth/login failed, reason: connect ETIMEDOUT
FetchError: request to https://api.codestream.com/no-auth/login failed, reason: connect ETIMEDOUT
at ClientRequest.<anonymous> (~/.vscode/extensions/codestream.codestream-0.50.0/dist/agent.js:16:255208)
at ClientRequest.emit (events.js:182:13)
at ClientRequest.EventEmitter.emit (domain.js:442:20)
at Socket.socketErrorListener (_http_client.js:382:9)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:442:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
我使用的代理是有效的,并尝试使用字符编码对其进行设置,而不进行编码,甚至在我的点文件中使用我的http_proxy
设置。 我也设置了"http.proxyStrictSSL": false,
@ethikz很抱歉您"http.proxy"
设置为您的代理? 如果没有,您可以尝试设置并报告吗?
@eamodio我确实设置了。 唯一的区别是我的 dot 文件中的那个是 url 编码的
是的,我在浏览器中收到消息OK 。
我确实知道代理可以在 VSCode 中工作,但对于其他事情就好像。 它们都从我的 dotfile 中的环境变量中提取。
@ethikz我们已经发布了 v0.51,虽然我怀疑它会解决您的问题,但它确实有一些新的日志记录可以帮助我们找出问题。 您可以尝试并使用日志报告(来自CodeStream
和CodeStream (Agent)
输出通道)吗? 如果您不想在此处发布日志,可以将它们发送至: [email protected]并将问题编号放在主题中。 谢谢!
@eamodio当然,我会更新并尝试。 如果你能给我几天时间,可能是下周早些时候,因为要参加为期 3 天的黑客马拉松。
@ethikz - 只是想跟进看看您是否有机会获取一些更新的日志。 谢谢!
@planteater ,抱歉回复晚了。
所以我使用 0.52.0-60 并且出现以下错误
从代理
[Error - 10:12:46 AM] [2019-04-11 14:12:46:168] ClientRequest.<anonymous>
FetchError: request to https://api.codestream.com/no-auth/login failed, reason: connect ETIMEDOUT 23.22.69.228:443
FetchError: request to https://api.codestream.com/no-auth/login failed, reason: connect ETIMEDOUT 23.22.69.228:443
at ClientRequest.<anonymous> (.vscode/extensions/codestream.codestream-0.52.0/dist/agent.js:23:204118)
at ClientRequest.emit (events.js:182:13)
at ClientRequest.EventEmitter.emit (domain.js:442:20)
at TLSSocket.socketErrorListener (_http_client.js:382:9)
at TLSSocket.emit (events.js:182:13)
at TLSSocket.EventEmitter.emit (domain.js:442:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
来自码流
[2019-04-11 14:14:57:862] WebviewPanel: Completed posting webview/focus/didChange to the webview
[2019-04-11 14:14:58:979] WebviewPanel: Completed posting webview/editor/didChangeVisibleRanges to the webview
[2019-04-11 14:14:59:489] WebviewPanel: Completed posting webview/editor/didChangeVisibleRanges to the webview
[2019-04-11 14:15:07:906] WebviewPanel: Completed posting webview/focus/didChange to the webview
[2019-04-11 14:15:13:840] WebviewPanel: FAILED posting webview/focus/didChange to the webview
[2019-04-11 14:16:23:296] WebviewPanel: Resuming communication...
[2019-04-11 14:16:23:297] WebviewPanel: Flushing pending queue
[2019-04-11 14:16:23:298] WebviewPanel: Completed posting webview/focus/didChange to the webview
[2019-04-11 14:16:23:298] WebviewPanel: Completed flushing pending queue
[2019-04-11 14:16:23:302] WebviewPanel: Completed posting webview/focus/didChange to the webview
当打开 js 文件并找到它报告的行时,我看到了这个函数:
function en(e) {
var t = this,
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
r = n.size;
let i = void 0 === r ? 0 : r;
var o = n.timeout;
let s = void 0 === o ? 0 : o;
null == e ? e = null : "string" == typeof e || nn(e) || e instanceof Blob || Buffer.isBuffer(e) || "[object ArrayBuffer]" === Object.prototype.toString.call(e) || ArrayBuffer.isView(e) || e instanceof zt || (e = String(e)), this[Qt] = {
body: e,
disturbed: !1,
error: null
}, this.size = i, this.timeout = s, e instanceof zt && e.on("error", function (e) {
const n = "AbortError" === e.name ? e : new Xt(`Invalid response body while trying to fetch ${t.url}: ${e.message}`, "system", e);
t[Qt].error = n
})
}
@ethikz - 我能麻烦您发送代理的完整输出吗? 不幸的是,您上面发送的内容缺少我们需要的部分。 谢谢!
@planteater这就是代理向我展示的减去我尝试登录的帐户。 是否有您正在寻找的特定事物?
我在调试时设置了它。
@ethikz我需要完整的代理日志(输出),以便我可以看到它是如何启动的,它发送了什么代理设置等。如果你不想在这里发布完整的日志,请将它们发送到support@ codestream.com并使用GH #43
作为主题行。 谢谢!
@eamodio您应该已经收到一封附有日志的电子邮件。
@ethikz感谢您提供日志,我认为我们已经在刚刚发布的 0.52.1 中解决了这个问题。 你能试一试然后回来报告吗? 谢谢!
看起来它现在正在工作。
只需要邀请人们加入团队并进一步测试。 谢谢!
最有用的评论
看起来它现在正在工作。
只需要邀请人们加入团队并进一步测试。 谢谢!