运行子程序(在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:运行子程序----)