mirror of
https://github.com/Finb/Bark.git
synced 2026-04-27 06:55:50 +03:00
[GH-ISSUE #24] 推送中 URL 出现问题时显示其字符串 #23
Labels
No labels
bug
enhancement
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Bark#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @uetcis on GitHub (Apr 7, 2019).
Original GitHub issue: https://github.com/Finb/Bark/issues/24
如题,这样可以方便调试
@Finb commented on GitHub (Apr 8, 2019):
URL只要遵守
通用规范即可 , 很容易调试需要注意的点
URL出现问题 显示其出问题的部分不好实现
URL如果拼错了,请求就到不了服务器
要么到了服务器,但是路由匹配错了,这时也需要你自己根据结果去判断是不是出问题了
你本来想匹配
A路由,但是写错了匹配到了B路由, 这时服务器不能确定你是搞错了,只会当成你成功请求了B。这是一个正常的成功的请求,不存在错误参数错了,在返回的json response 中有具体的错误原因
访问了不存在的路径,根据http 状态码即可知道
@uetcis commented on GitHub (Apr 12, 2019):
是这样的,我在尝试用 IFTTT 的 Webhook 来推送,这样的话涉及到对请求的编码问题,所以会比较难调试。。。