Giter Site home page Giter Site logo

TypeError: Failed to fetch about jsproxy HOT 24 OPEN

etherdream avatar etherdream commented on May 29, 2024
TypeError: Failed to fetch

from jsproxy.

Comments (24)

EtherDream avatar EtherDream commented on May 29, 2024

详细信息?浏览器控制台 network 排查看下

from jsproxy.

mcmyth avatar mcmyth commented on May 29, 2024

图片
显示502错误,preview就是TypeError: Failed to fetch

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

502 是 nginx 内部错误,你看下服务器的错误日志:tail /home/jsproxy/server/nginx/logs/error.log

估计是 1.1.1.1 这个 DNS 连不上。

from jsproxy.

mcmyth avatar mcmyth commented on May 29, 2024

2019/05/19 03:13:14 [error] 7622#0: 2 failed to run log_by_lua: log_by_lua(nginx.conf:80):1: module 'g' not found:
no field package.preload['g']
no file './lua/g.lua'
no file '/home/jsproxy/openresty/site/lualib/g.so'
no file '/home/jsproxy/openresty/lualib/g.so'
no file './g.so'
no file '/usr/local/lib/lua/5.1/g.so'
no file '/home/jsproxy/openresty/luajit/lib/lua/5.1/g.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
log_by_lua(nginx.conf:80):1: in main chunk while logging request, client: 103.200.113.114, server: .tw, request: "OPTIONS /http HTTP/2.0", host: ".tw:8443"

DNS没问题

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

把 server/nginx.conf 里的 log_by_lua 前面加一个 # 试试,重启服务试试?

貌似 CDN 上的文件没更新。。。

from jsproxy.

mcmyth avatar mcmyth commented on May 29, 2024

成功了,谢谢大佬

from jsproxy.

kfsnkxp avatar kfsnkxp commented on May 29, 2024

同样的“TypeError: Failed to fetch”。没有服务器端的错误记录,curl远程测试8080端口都是OK的,客户端配置8080端口、8443端口都无法访问。

from jsproxy.

kfsnkxp avatar kfsnkxp commented on May 29, 2024

20190520180624
错误如图。
源码里的节点有可用的吗? 我都删除了,添加了自己的服务器端地址,无论是域名:8080还是localhost都不行

from jsproxy.

mcmyth avatar mcmyth commented on May 29, 2024

你nginx配置的是监听8443吗

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

20190520180624
错误如图。
源码里的节点有可用的吗? 我都删除了,添加了自己的服务器端地址,无论是域名:8080还是localhost都不行

之前程序有些问题,我更新 README 了。用最新的安装方式试试?

from jsproxy.

kfsnkxp avatar kfsnkxp commented on May 29, 2024

你nginx配置的是监听8443吗

之前是8080……
我服务器端和客户端放一个VPS下,域名相同没问题吧?

现在更改NGINX配置
没用server下gen-cert生成,用的是腾讯云申请的SSL。
结果还是不行

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

你nginx配置的是监听8443吗

之前是8080……
我服务器端和客户端放一个VPS下,域名相同没问题吧?

现在更改NGINX配置
没用server下gen-cert生成,用的是腾讯云申请的SSL。
结果还是不行

服务器端和客户端同个域名的话,allowed-sites.conf 里加一行 '' xxx;,因为请求头 origin 字段为空。之前没考虑这种情况,下次我加一个判断。

from jsproxy.

kfsnkxp avatar kfsnkxp commented on May 29, 2024

服务器端server/nginx/logs/proxy.log没有记录,说明客户端请求没到服务端。依旧报TypeError: Failed to fetch错误

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

server/nginx/logs/proxy.log

server/nginx/logs/error.log 有记录吗?是不是 8080/8443 端口没有添加到防火墙里?

from jsproxy.

zanzhz1101 avatar zanzhz1101 commented on May 29, 2024

TypeError: Failed to fetch我之前也遇到过,主要是在移动端的chrome内核的浏览器上,log里同样没啥错误记录,新版本还没有更新,下午试试再反馈

from jsproxy.

dissipator avatar dissipator commented on May 29, 2024

我部署完成后,把端口改为了443,域名也改成了私人的域名。
浏览器显示“TypeError: Failed to fetch”该怎么解决?
image

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

我部署完成后,把端口改为了443,域名也改成了私人的域名。
浏览器显示“TypeError: Failed to fetch”该怎么解决?
image

conf.js 里的配置也改了吗?或者看下 ~/server/nginx/logs/error.log 里有显示什么内部错误吗?

from jsproxy.

dissipator avatar dissipator commented on May 29, 2024

conf.js 里的配置没改,要怎么改啊?

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

conf.js 里的配置没改,要怎么改啊?

改 lines 数组里的地址,改成你的域名就好了。(改完后用隐身模式试试)

from jsproxy.

dissipator avatar dissipator commented on May 29, 2024

成功的,就是速度没有ssr+BBR快

from jsproxy.

344524488 avatar 344524488 commented on May 29, 2024

相同问题,求解决
image

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

相同问题,求解决
image

用的是最新这个版本的安装脚本吗?

from jsproxy.

344524488 avatar 344524488 commented on May 29, 2024

相同问题,求解决
image

用的是最新这个版本的安装脚本吗?

是的,最新脚本,先开始安装还工作过了会不行了重装还是这样不知道咋回事?

from jsproxy.

EtherDream avatar EtherDream commented on May 29, 2024

相同问题,求解决
image

用的是最新这个版本的安装脚本吗?

是的,最新脚本,先开始安装还工作过了会不行了重装还是这样不知道咋回事?

修改 allowed-sites.conf,把这个域名加到白名单试试。

from jsproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.