挂了境外VPN访问部署在境内的网站,出现net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)错误。
网站Nginx已配置缓存
location / {
include /www/server/nginx/conf/uwsgi_params; ### 如果这个关闭了,会导致uswgi无法运行
uwsgi_pass 127.0.0.1:8000; #端口要和uwsgi里配置的一样
uwsgi_param UWSGI_SCRIPT cysj.wsgi; #wsgi.py所在的目录名+.wsgi
uwsgi_param UWSGI_CHDIR /www/wwwroot/cysjconn.com/cysjconn/cysj/; #项目路径
proxy_buffer_size 1024k; #设置代理服务器(nginx)保存用户头信息的缓冲区大小
proxy_buffers 16 1024k; #proxy_buffers缓冲区,网页平均在32k以下的设置
proxy_busy_buffers_size 2048k; #高负荷下缓冲大小(proxy_buffers*2)
proxy_temp_file_write_size 2048k;
}
但还是会报错,该如何解决?
const timRender = new TimRender();
timRender.TIMInit()
初始化SDK,出错
remote.js:273 Uncaught Error: @electron/remote is disabled for this WebContents. Call require("@electron/remote/main").enable(webContents) to enable it.
at IpcMainImpl.<anonymous> (/Users/plum/Desktop/vue/zmpc/pc-psp-new/node_modules/im_electron_sdk/node_modules/@electron/remote/dist/src/main/server.js:318:61)
at IpcMainImpl.emit (node:events:527:28)
at EventEmitter.<anonymous> (node:electron/js2c/browser_init:165:12242)
at EventEmitter.emit (node:events:527:28)