GithubHelp home page GithubHelp logo

Comments (7)

zdz avatar zdz commented on May 19, 2024

const IP_API_URL:&str = "http://ip-api.com/json?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,isp,org,as,asname,query&lang=zh-CN";

那是你的主机请求这个url,请求不到,获取不到ip信息

from serverstatus-rust.

Today-to-Lsp avatar Today-to-Lsp commented on May 19, 2024

const IP_API_URL:&str = "http://ip-api.com/json?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,isp,org,as,asname,query&lang=zh-CN";

那是你的主机请求这个url,请求不到,获取不到ip信息

Caused by:
0: error trying to connect: tcp connect error: Connection refused (os error 111)
1: tcp connect error: Connection refused (os error 111)
2: Connection refused (os error 111)
ERROR stat_client > refresh_ip_info error => error sending request for url (http://ip-api.com/json?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,isp,org,as,asname,query&lang=zh-CN): error trying to connect: tcp connect error: Connection refused (os error 111)

直接访问API不行,但奇怪的ping http://ip-api.com又可以ping通

image

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

估计是按地域 ip 封 http 请求,后面找一下代替

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

试试 https://github.com/zdz/ServerStatus-Rust/releases/tag/v1.7.1

# 测试
./stat_client --ip-info --ip-source "ip.sb" -d
# 可用值 ip-api.com / ip.sb / ipapi.co / myip.la

from serverstatus-rust.

laowu-cf avatar laowu-cf commented on May 19, 2024

大佬...你这个版本似乎不兼容之前的了?
ERROR stat_server::stats > report error => Error("missing field timezone", line: 0, column: 0)
server更新以后上报直接报这个了哦....

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

大佬...你这个版本似乎不兼容之前的了? ERROR stat_server::stats > report error => Error("missing field timezone", line: 0, column: 0) server更新以后上报直接报这个了哦....

额,客户端也要升一下级

from serverstatus-rust.

laowu-cf avatar laowu-cf commented on May 19, 2024

大佬...你这个版本似乎不兼容之前的了? ERROR stat_server::stats > report error => Error("missing field timezone", line: 0, column: 0) server更新以后上报直接报这个了哦....

额,客户端也要升一下级

最好能兼容一下吧....几十台机器还有windows的.好像.成本比较高呃

from serverstatus-rust.

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.