The requested URL was not found on the server
来源:互联网 发布:淘宝销售额统计 编辑:程序博客网 时间:2024/06/05 02:58
问题重现:
curl的时候带了了一个url,例如XXXX/api/resource
然后报错
The requested URL was not found on the server
原因是什么呢?
因为部署这个web框架的python文件中没有
类似于
@app.route('/api/resource', methods=['POST'])
的语句以及相关处理函数。
从而导致客户端请求的时候找不到。
The requested URL was not found on the server
的意思其实是,客户端的请求中的url在服务器端的python文件中的@app.route()中找不到。
@app.route()这个东西其实有点类似于C语言中的case语句的味道,请求中附带的链接和括号中的值匹配时,就执行括号后面的相关语句。
阅读全文
0 0
- The requested URL was not found on the server
- The requested URL /**** was not found on this server
- 404 Not Found The requested URL * was not found on this server
- ubuntu 出现 Not Found The requested URL /phpmyadmin/ was not found on this server.
- Not Found The requested URL /phpMyAdmin/index.php was not found on this server.
- Not Found The requested URL /phpMyAdmin/index.php was not found on this server.解决办法
- 有关phpmyadmin登录错误The requested URL /phpmyadmin was not found on this server.的解决方法
- The requested URL /OA_HTML/AppsLogin was not found on this server. 的一个解决办法
- PHP zend framework The requested URL /XXX/public/index was not found on this server
- CakePHP运行报错The requested URL XX was not found on this server.
- Zend Framework: The requested URL /newposter was not found on this server.
- The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
- phpmyadmin登陆中遇到The requested URL /phpmyadmin was not found on this server的解决方法
- The requested URL /phpMyAdmin was not found on this server.问题解决方法
- The requested URL /get_data.xml was not found on this server.
- The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
- The requested URL /Users/add was not found on this server.
- laravel The requested URL /test was not found on this server.
- 极光推送iOS接入代码(含设置别名)
- Oracle概念与基本操作
- 设备像素比
- 打造前端 Deepin Linux 工作环境——开机自动加载 ~/.bash_profile 文件
- 阿里技术面试
- The requested URL was not found on the server
- 可视化作业 11/6
- Android7.0 安装apk更新包后出现异常的解决办法
- ClassPathXmlApplicationContext
- XAMPP的mysql启动不了的解决办法
- leetcode 228. Summary Ranges
- xutils3使用方法(很全面)
- CodeForces
- iOS 应用展示广告动画