newrank微信公众号路由报错:TypeError: Invalid URL
- Dominant language
- TypeScript
- Stars
- 46.2k
- Forks
- 10.2k
- Avg merge
- 18h 40m
- Merged PRs (30d)
- 172
Description
### 路由地址
```routes
/newrank/wechat/:wxid
```
### 完整路由地址
```fullroutes
/newrank/wechat/oalbum
```
### 相关文档
https://docs.rsshub.app/zh/routes/social-media#%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7
### 预期是什么?
正常返回
### 实际发生了什么?
报错TypeError: Invalid URL
### 部署
自建
### 部署相关信息
_No response_
### 额外信息
```shell
docker-compose yaml:
version: '3'
services:
rsshub:
image: diygod/rsshub
restart: always
ports:
- '1200:1200'
environment:
NODE_ENV: production
CACHE_TYPE: redis
REDIS_URL: 'redis://192.168.3.195:6379/'
PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000'
NEWRANK_COOKIE: "token=xxxxxxxxxxxxxxxxxxxxxx"
LOGGER_LEVEL: debug
depends_on:
- browserless
browserless:
image: browserless/chrome
restart: always
ulimits:
core:
hard: 0
soft: 0
```
### 这不是重复的 issue
- [X] 我已经搜索了 [现有 issue](https://github.com/DIYgod/RSSHub/issues),以确保该错误尚未被报告。
Contributor guide
Research direction
Start with the documented `/newrank/wechat/:wxid` route and reproduce `/newrank/wechat/oalbum` using the supplied Docker Compose environment, including `NEWRANK_COOKIE` and the browserless endpoint. Trace the request until the `TypeError: Invalid URL` occurs and compare the route's URL construction with the expected upstream address. Done means the route returns normally for this example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100