DIYgod / DIYgod/RSSHub

商务部路由的格式问题,一部分可抓,一部分报错

Open
#11,860 1 comment 0 reactions 0 assignees View on GitHub
route: v2 RSS bug
Dominant language
TypeScript
Stars
46.2k
Forks
10.2k
Avg merge
8h 48m
Merged PRs (30d)
175

Description

### 路由地址

```routes
/gov/mofcom/article/:suffix+
```

### 完整路由地址

```fullroutes
https://rsshub.app/gov/mofcom/article/xwfb
```

### 相关文档

https://rsshub.app/gov/mofcom/article/xwfb

### 预期是什么?

格式统一

### 实际发生了什么?

一部分可抓,一部分报错

### 部署

自建

### 部署相关信息

_No response_

### 额外信息

```shell
http://www.mofcom.gov.cn/article/b/

对应路由

/gov/mofcom/article/b/

Error message: Error: this route is empty, please check the original site or create an issue

网站 http://www.mofcom.gov.cn/article/zcjd/

对应路由 /gov/mofcom/article/zcjd/

Error message: TypeError: Cannot read property '1' of null

网站 http://www.mofcom.gov.cn/article/b/

对应路由 /gov/mofcom/article/tj/

Error message: Error: this route is empty, please check the original site or create an issue
```

### 这不是重复的 issue

- [X] 我已经搜索了[现有 issue](https://github.com/DIYgod/RSSHub/issues),以确保该错误尚未被报告。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.