Comments (2)
URL只要遵守通用规范
即可 , 很容易调试
需要注意的点
- 特殊字符需要URL编码,不编码有可能导致URL结构出错或匹配错了路由
//例如
https://api.day.app/key/title/{推送内容}
//如果{推送内容}是
"a/b/c/"
//则最后的URL是
https://api.day.app/key/title/a/b/c/
//将找不到对应的路由,后端程序将返回404
- 按定义好的路由路径格式访问
URL出现问题 显示其出问题的部分不好实现
-
URL如果拼错了,请求就到不了服务器
-
要么到了服务器,但是路由匹配错了,这时也需要你自己根据结果去判断是不是出问题了
你本来想匹配A
路由,但是写错了匹配到了B
路由, 这时服务器不能确定你是搞错了,只会当成你成功请求了B
。这是一个正常的成功的请求,不存在错误 -
参数错了,在返回的json response 中有具体的错误原因
-
访问了不存在的路径,根据http 状态码即可知道
from bark.
是这样的,我在尝试用 IFTTT 的 Webhook 来推送,这样的话涉及到对请求的编码问题,所以会比较难调试。。。
from bark.
Related Issues (20)
- 连接了电信wifi,服务器错误了,用5g服务器可以用了,哪里有什么问题 HOT 2
- 能否添加自定义的铃声通知 HOT 2
- 有没有反向推送的操作 HOT 1
- Utools插件推荐
- Safari Extension下载
- 可否不推送空白的内容到app HOT 1
- 是否可以支持重要警告消息? HOT 1
- Minor English Correction
- 如何设置像来电一样的提醒?除非主动按掉,否则一直响铃 HOT 3
- Python script for msg sender with AES-256-CBC
- Suggestion to Optimize AES Key Encoding Method
- 请问有安卓端的替代品吗?
- bark闪退
- bark能否实现定时推送的功能 HOT 1
- 作者您好,想咨询一下icon能否刷新. HOT 1
- 可以支持自动粘贴吗 HOT 2
- iv 中包含 \r\n 导致 Decryption Failed
- 一个功能更完善的Python包,支持所有参数
- 在IOS17.2.1上使用,通知无法亮屏 HOT 2
- 电报群邀请链接过期了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bark.