[GH-ISSUE #176] 添加带 Base Auth 的自定义服务器 URL 时,无法识别 #157

Closed
opened 2026-03-03 11:37:35 +03:00 by kerem · 2 comments
Owner

Originally created by @bekcpear on GitHub (Dec 2, 2022).
Original GitHub issue: https://github.com/Finb/Bark/issues/176

类似添加 https://user:password@bark.domain.com/prefix 这样的地址,报告

填写的服务器无效,请重试!网络错误

服务器端能收到请求,回复 code 418,怀疑前缀的 user:password 未生效,查 Moya 文档,得到 Base auth 需要使用 CredentialsPluginhttps://github.com/Moya/Moya/blob/master/docs/Authentication.md ),不知是否正确。

Originally created by @bekcpear on GitHub (Dec 2, 2022). Original GitHub issue: https://github.com/Finb/Bark/issues/176 类似添加 `https://user:password@bark.domain.com/prefix` 这样的地址,报告 ``` 填写的服务器无效,请重试!网络错误 ``` 服务器端能收到请求,回复 code `418`,怀疑前缀的 `user:password` 未生效,查 Moya 文档,得到 Base auth 需要使用 `CredentialsPlugin`( https://github.com/Moya/Moya/blob/master/docs/Authentication.md ),不知是否正确。
kerem closed this issue 2026-03-03 11:37:35 +03:00
Author
Owner

@Finb commented on GitHub (Dec 2, 2022):

https://bark.domain.com/prefix 直接这样加,不用加验证,注册不需要验证。

<!-- gh-comment-id:1334673233 --> @Finb commented on GitHub (Dec 2, 2022): https://bark.domain.com/prefix 直接这样加,不用加验证,注册不需要验证。
Author
Owner

@bekcpear commented on GitHub (Dec 2, 2022):

https://bark.domain.com/prefix 直接这样加,不用加验证,注册不需要验证。

直接这样子加,它会请求 https://bark.domain.com/prefix/ping 这个地址,然后失败,就添加不了 server

<!-- gh-comment-id:1334674534 --> @bekcpear commented on GitHub (Dec 2, 2022): > https://bark.domain.com/prefix 直接这样加,不用加验证,注册不需要验证。 直接这样子加,它会请求 `https://bark.domain.com/prefix/ping` 这个地址,然后失败,就添加不了 server
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Bark#157
No description provided.