waline
waline copied to clipboard
[Bug]: MongoDB 改变了 Request URL 格式 || [Bug]: MongoDB changed the Request URL format
问题描述 | Describe the bug
MongoDB URL 的新要求:
mongodb://admin:<password>@ac-1cwx7lh-shard-00-00.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-01.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-02.ktanrgk.mongodb.net:27017/?ssl=true&replicaSet=atlas-maqbvt-shard-0&authSource=admin&retryWrites=true&w=majority&appName=Waline-DB
Waline URL 的内容:
mongodb://admin:<password>@ac-1cwx7lh-shard-00-00.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-01.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-02.ktanrgk.mongodb.net:27017/Waline-DB?replicaSet=atlas-maqbvt-shard-0&authSource=admin&ssl=true
注意新要求里的 appName.
错误信息:
(node:8) [DEP0170] DeprecationWarning: The URL mongodb://admin:<password>@ac-1cwx7lh-shard-00-00.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-01.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-02.ktanrgk.mongodb.net:27017/Waline-DB?replicaSet=atlas-maqbvt-shard-0&authSource=admin&ssl=true is invalid. Future versions of Node.js will throw an error.
(Use `node --trace-deprecation ...` to show where the warning was created)
TimeoutError: ResourceRequest timed out
at ResourceRequest._fireTimeout (/var/task/node_modules/generic-pool/lib/ResourceRequest.js:62:17)
at Timeout.bound (/var/task/node_modules/generic-pool/lib/ResourceRequest.js:8:15)
at listOnTimeout (node:internal/timers:573:17)
at processTimers (node:internal/timers:514:7)
问题网站 | Website URL
N/A
服务部署在哪里? | Where your waline deploy?
Vercel (Default)
数据存储在哪里?| Where your comment data store?
MongoDB
Problem description | Describe the bug
New requirements for MongoDB URLs:
mongodb://admin:<password>@ac-1cwx7lh-shard-00-00.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-01.ktanrgk.mongodb.net:27017,ac-1cwx7lh- shard-00-02.ktanrgk.mongodb.net:27017/?ssl=true&replicaSet=atlas-maqbvt-shard-0&authSource=admin&retryWrites=true&w=majority&appName=Waline-DB
Contents of Waline URL:
mongodb://admin:<password>@ac-1cwx7lh-shard-00-00.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-01.ktanrgk.mongodb.net:27017,ac-1cwx7lh- shard-00-02.ktanrgk.mongodb.net:27017/Waline-DB?replicaSet=atlas-maqbvt-shard-0&authSource=admin&ssl=true
Note the appName in the new requirement.
error message:
(node:8) [DEP0170] DeprecationWarning: The URL mongodb://admin:<password>@ac-1cwx7lh-shard-00-00.ktanrgk.mongodb.net:27017,ac-1cwx7lh-shard-00-01. future versions of Node .js will throw an error.
(Use `node --trace-deprecation ...` to show where the warning was created)
TimeoutError: ResourceRequest timed out
at ResourceRequest._fireTimeout (/var/task/node_modules/generic-pool/lib/ResourceRequest.js:62:17)
at Timeout.bound (/var/task/node_modules/generic-pool/lib/ResourceRequest.js:8:15)
at listOnTimeout (node:internal/timers:573:17)
at processTimers (node:internal/timers:514:7)
Question Website | Website URL
N/A
Where is the service deployed? | Where your waline deploy?
Vercel (Default)
Where is the data stored? | Where your comment data store?
MongoDB
这两种 URL 格式目前都是没问题的,只不过在 cluster 中创建的数据库位置有所不同(留空默认 test)。appName 也不是必须的。
烦请你刷新一下评论区再查看一下日志,方便定位真正的问题
Both URL formats are currently fine, except that the location of the database created in the cluster is different (leave blank to default to test). appName is also not required.
Please refresh the comment area and check the log to help locate the real problem