GithubHelp home page GithubHelp logo

关于异常信息的传递 about dtm HOT 5 CLOSED

DianWoung avatar DianWoung commented on June 6, 2024
关于异常信息的传递

from dtm.

Comments (5)

yedf2 avatar yedf2 commented on June 6, 2024

管理后台会显示失败的原因,如果你没有找到,帮忙给个复现的例子,我看看如何修复

from dtm.

DianWoung avatar DianWoung commented on June 6, 2024
{
  "branches": [
    {
      "id": 11,
      "create_time": "2023-08-16T04:24:47Z",
      "update_time": "2023-08-16T04:24:47Z",
      "gid": "hqL8CUsXh7YaUzBYhTXCVk",
      "url": "https://xxxxx:8443/womata-wms/v1/wol/syncOrder",
      "bin_data": "eyJvcmRlcklkcyI6WzIzNjddfQ==",
      "branch_id": "01",
      "op": "action",
      "status": "prepared"
    }
  ],
  "transaction": {
    "id": 7,
    "create_time": "2023-08-16T04:24:47Z",
    "update_time": "2023-08-16T04:40:56Z",
    "gid": "hqL8CUsXh7YaUzBYhTXCVk",
    "trans_type": "msg",
    "status": "failed",
    "protocol": "http",
    "rollback_time": "2023-08-16T04:40:56Z",
    "options": "{\"branch_headers\":{\"token\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImRpYW4xMjZAZm94bWFpbC5jb20iLCJleHAiOjE2OTI2MDc4OTYsImV4cFN0ciI6IjIwMjMtMDgtMjEgMDk6NTE6MzYiLCJpYXQiOjE2ODM5Njc4OTYsImlkIjoxMDE4LCJpc3MiOiJEVEJwOENCQzJoV2lvZmxPRk1NVjd0SkF5enBPZGp6UyIsIm5hbWUiOiJkaWFud2FuZyIsInBob25lIjoiKzg2MTMxMDAwMDAwMSJ9.PerCSbHc7Vg7bppSUmG15U2bi5PjGV7VzrrxIamACh0\"},\"concurrent\":false}",
    "next_cron_interval": 640,
    "next_cron_time": "2023-08-16T04:46:15Z",
    "owner": "YxcxvYESqRWrhdV2uFhL45",
    "concurrent": false
  }
}

如上所示,只返回了status是failed,但是没有具体服务的异常信息,只能到对应服务去查调用记录才行,我使用的版本是DTM admin v1.17.3,试用了sage和msg两种模式

from dtm.

DianWoung avatar DianWoung commented on June 6, 2024

目前项目使用的是go-zero + loki日志系统 + garafa管理后台,dtm接入loki的方法有没有案例可以参考,方便查询日志和调用链路

from dtm.

yedf2 avatar yedf2 commented on June 6, 2024

能否把复现的例子代码给一下,这样我可以快速的定位问题

from dtm.

DianWoung avatar DianWoung commented on June 6, 2024

测试了各种模式,发现好像系统本身的设计就是这样,所以我这里仅仅只是一个建议,如果能在后台的调用详情体现出来调用的异常,会很方便来检查异常信息,由于不是bug,我这里关闭这个issue

from dtm.

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.