GithubHelp home page GithubHelp logo

json.Unmarshal failed about nginx-vts-exporter HOT 4 CLOSED

sysulq avatar sysulq commented on September 3, 2024
json.Unmarshal failed

from nginx-vts-exporter.

Comments (4)

sysulq avatar sysulq commented on September 3, 2024

可以看下你的http://xxx/status/format/json 这个页面是什么数据

Please check what is it in your http://xxx/status/format/json page

from nginx-vts-exporter.

Lvzhenqian avatar Lvzhenqian commented on September 3, 2024

json.txt
这是我的json文件,在serverZones里面拿到有特殊字符,所以解析失败了。

from nginx-vts-exporter.

sysulq avatar sysulq commented on September 3, 2024

@Lvzhenqian
Maybe you should justify your nginx config instead of replaceing special charactors...
也许你应该调整nginx配置,而不是替换特殊字符。。。

from nginx-vts-exporter.

Lvzhenqian avatar Lvzhenqian commented on September 3, 2024

@Lvzhenqian
Maybe you should justify your nginx config instead of replaceing special charactors...
也许你应该调整nginx配置,而不是替换特殊字符。。。

serverZones 里的server_name,nginx-vts-module 拿出来时就有特殊字符。没看到有相关的详细配置。
vhost_traffic_status_filter_by_host on; 配置都加上了。所以我也是没办法中的办法 :)

from nginx-vts-exporter.

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.