报错-在Zotero中直接运行JavaScript代码 失败

BUG反馈 · 224 次浏览
Torsten 创建于 2024-05-13 20:47

运行子程序(在Zotero中直接运行JavaScript代码)失败。解析表达式出错。
内部错误:响应状态代码不指示成功: 500 (Internal Server Error)。
原始表达式:
//using System.Net.Http.Headers;
var client = new HttpClient();
var content = new StringContent({jscode});
content.Headers.ContentType = new MediaTypeHeaderValue("application/javascript");
var request = new HttpRequestMessage()
{
    Method = HttpMethod.Post,
    RequestUri = new Uri($"http://127.0.0.1:23119/debug-bridge/execute?password={{Password}.UrlEncode()}"),
    Content = content
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    return body;
}(赋值)
(----Zotero批注v18:运行子程序----)


Torsten 2024-05-13 20:48 :
zotero 安装了 zotero debug bridge
回复内容
暂无回复
回复主贴