Code Monkey home page Code Monkey logo

Comments (18)

lmc999 avatar lmc999 commented on June 25, 2024

请告知你的idc

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

JustVPS 和 ReadySpace 都会出现这个问题.

from regionrestrictioncheck.

lmc999 avatar lmc999 commented on June 25, 2024

因为我没有这两家的机器,脚本里你可以看到具体获取到CDN信息的步骤,你可以尝试一下按脚本命令操作看看哪一步出问题。

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

我试了一下

CDNAddr=$(echo $tmpresult | python -m json.tool 2> /dev/null | grep 'name' | head -n 1 | cut -f3 -d"/")

这一行跑出来是空的 (CDNAddr 是空值)

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

我测试了一下, 要用 python3 才能正常跑, 用 python 会报 Command not found 的错.

from regionrestrictioncheck.

lmc999 avatar lmc999 commented on June 25, 2024

请问运行以下这行命令你的机器有什么返回

curl -s --max-time 10 "https://api.fast.com/netflix/speedtest/v2?https=true&token=YXNkZmFzZGxmbnNkYWZoYXNkZmhrYWxm&urlCount=5"

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024
{"client":{"ip":"*.*.*.*","asn":"7595","location":{"city":"Singapore","country":"SG"}},"targets":[{"name":"https://ipv4-c026-sin001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=55&e=1629274828&t=Gyw1JLlGzIXYIikRNm6HOIWuWlDj3W_NS6vysg","url":"https://ipv4-c026-sin001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=55&e=1629274828&t=Gyw1JLlGzIXYIikRNm6HOIWuWlDj3W_NS6vysg","location":{"city":"Singapore","country":"SG"}},{"name":"https://ipv4-c040-sin001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=54&e=1629274828&t=iDBeNlyml5HS5KoAj4_Z9Cs-HP_BUxfm45Epkg","url":"https://ipv4-c040-sin001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=54&e=1629274828&t=iDBeNlyml5HS5KoAj4_Z9Cs-HP_BUxfm45Epkg","location":{"city":"Singapore","country":"SG"}},{"name":"https://ipv4-c042-hkg001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=54&e=1629274828&t=JfJgjmx16d7bZLYSVEeOIEpStGROufwx1bf25Q","url":"https://ipv4-c042-hkg001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=54&e=1629274828&t=JfJgjmx16d7bZLYSVEeOIEpStGROufwx1bf25Q","location":{"city":"Tsuen Wan","country":"HK"}},{"name":"https://ipv4-c045-hkg001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=21&e=1629274828&t=MQrq-yk6TvNoBTF5OirJz_iXG2s68cesI2ggxg","url":"https://ipv4-c045-hkg001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=21&e=1629274828&t=MQrq-yk6TvNoBTF5OirJz_iXG2s68cesI2ggxg","location":{"city":"Tsuen Wan","country":"HK"}},{"name":"https://ipv4-c006-tyo001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=55&e=1629274828&t=uoIV_fuMYtdyKI8sjKpRfmrbMiaQ1hBus1xSBw","url":"https://ipv4-c006-tyo001-ix.1.oca.nflxvideo.net/speedtest?c=sg&n=7595&v=55&e=1629274828&t=uoIV_fuMYtdyKI8sjKpRfmrbMiaQ1hBus1xSBw","location":{"city":"Tokyo","country":"JP"}}]}

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

我比较确定问题是 pythonpython3 的问题, 因为安装 python-is-python3 后脚本工作正常.

from regionrestrictioncheck.

lmc999 avatar lmc999 commented on June 25, 2024

你可以分别执行这两条命令验证一下是不是python版本问题,如果返回结果一样,这样可以判断是不是python版本问题。因为脚本还有很多其他地方运行python -m json.tool来格式化json返回,如果python导致出错,脚本其他检测也会出现问题。而且我本人目前使用ubuntu 16.04,默认就是python2,而我没有出现过Netflix CDN卡住的问题,所以我不大认为是python版本问题。
反而有部分机器访问fast的api会返回403,而这个情况确实会导致检测卡住,不过已经修复了。麻烦你再帮忙验证一下

curl -s --max-time 10 "https://api.fast.com/netflix/speedtest/v2?https=true&token=YXNkZmFzZGxmbnNkYWZoYXNkZmhrYWxm&urlCount=5" | python2 -m json.tool
curl -s --max-time 10 "https://api.fast.com/netflix/speedtest/v2?https=true&token=YXNkZmFzZGxmbnNkYWZoYXNkZmhrYWxm&urlCount=5" | python3 -m json.tool

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

python3 的这条执行正常. 但 python2 显示 Command 'python2' not found

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

你可以分别执行这两条命令验证一下是不是 python 版本问题,如果返回结果一样,这样可以判断是不是 python 版本问题。因为脚本还有很多其他地方运行 python -m json.tool 来格式化 json 返回,如果 python 导致出错,脚本其他检测也会出现问题。而且我本人目前使用 ubuntu 16.04,默认就是 python2,而我没有出现过 Netflix CDN 卡住的问题,所以我不大认为是 python 版本问题。

目前来看默认使用 python2 的机器没什么问题, 默认 python3 的反而会出问题

from regionrestrictioncheck.

lmc999 avatar lmc999 commented on June 25, 2024

脚本其实会默认软连python3到python的,但是前段时间我修改了一下python的安装步骤,估计是软连失败了,现在改回来了

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

脚本其实会默认软连 python3 到 python 的,但是前段时间我修改了一下 python 的安装步骤,估计是软连失败了,现在改回来了

刚刚测试, 使用 a4b1aec 这一版本的脚本依然存在这一问题.

from regionrestrictioncheck.

ltdstudio avatar ltdstudio commented on June 25, 2024

同样的~

from regionrestrictioncheck.

lmc999 avatar lmc999 commented on June 25, 2024

现在试试吧,昨天群友找出来是python2的编码问题,现在获取CDN地址那一步已经去掉python了

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

现在确实不会卡在 CDN 这一步了, 但是出现了 #13 这个问题

from regionrestrictioncheck.

lmc999 avatar lmc999 commented on June 25, 2024

现在确实不会卡在 CDN 这一步了, 但是出现了 #13 这个问题

这是ip.sb上查不到你IP的ISP信息,这里无法处理

from regionrestrictioncheck.

Ninzero avatar Ninzero commented on June 25, 2024

好的, 那这个问题应该算解决了, 我关 Issue 了

from regionrestrictioncheck.

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.