MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
16.65k stars 2.66k forks source link

[Bug] yacd-meta proxies tab is empty with latest alpha #930

Closed remedynotavailable closed 10 months ago

remedynotavailable commented 10 months ago

Verify steps

Mihomo version

alpha-b632575

What OS are you seeing the problem on?

Linux

Mihomo config

any

Mihomo log

No log but there's error messages in browser's console.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'length')
    at index-aaeb651e.js:104:30997

Description

I checked the network tab in the browser. Mihomo api reply on /providers/proxies with history: null which is not the case with the previous version.

{
  "providers": {
    "default": {
      "expectedStatus": "*",
      "name": "default",
      "proxies": [
        {
          "alive": true,
          "extra": {},
          "history": null,
          "id": "1eea14a0-0400-6ebf-9984-6ef57f34e24c",
          "name": "DIRECT",
          "tfo": false,
          "type": "Direct",
          "udp": true,
          "xudp": false
        },
        {
          "alive": true,
          "extra": {},
          "history": null,
          "id": "1eea14a0-0403-630e-9984-db4f718acd50",
          "name": "REJECT",
          "tfo": false,
          "type": "Reject",
          "udp": true,
          "xudp": false
        },
...

I guess it's related to #860

lux5am commented 10 months ago

Okay it's working fine now. Thank you sirs.