问题重现:

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语句的味道,请求中附带的链接和括号中的值匹配时,就执行括号后面的相关语句。

The requested URL was not found on the server相关推荐

  1. Object not found! The requested URL was not found on this server.... 报错解决方案

    Object not found! The requested URL was not found on this server.... 报错解决方案 参考文章: (1)Object not foun ...

  2. The requested URL was not found on the server. If you entered the URL manually please check your spe

    项目场景: 项目场景:flask蓝图在区分不同路径是出现BUG Not Found The requested URL was not found on the server. If you ente ...

  3. 成功解决404 Not Found Not Found The requested URL was not found on the server. If yo

    成功解决404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not fo ...

  4. The requested URL /**** was not found on this server

    当ubuntu使用Apache搭建web服务器是,访问网页失败,出现: The requested URL /"文件名" was not found on this server ...

  5. wampserver图标为绿色,打开localhost页面错误提示:The requested URL / was not found on this server

    首先检查Apache下的httpd.conf 的DocumentRoot 和Directory 的路径是的正确,若未改变初始的路径,即"F(磁盘,根据自己存放的位置不同而不同):\wamp\ ...

  6. vue 路由history模式打包部署 The requested URL * was not found on this server. 的解决方法

    apache开启rewrite_module模块, 在项目根目录创建.htaccess文件,文件内容如下 <IfModule mod_rewrite.c>   Options +Follo ...

  7. Not FoundThe requested URL was not found on the server. If you entered the URL manually please chec

    如果你使用vs,发现程序可运行,但网页打不开,这其实并不是你代码有问题,也不需要从代码层面解决,我直接写下我的解决思路: 首先创建新项目一定要选空白: 然后在你的主函数的同一级目录下新建文件夹temp ...

  8. Not Found The requested URL was not found on this server. Additionally, a 404 Not Found error was e

    这是tp6配置时候出现的问题 先配置伪静态文件 在public目录下有个文件.htaccess 复制以下内容到此文件中 <IfModule mod_rewrite.c>   Options ...

  9. git 提交失败 HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

    为什么80%的码农都做不了架构师?>>>    关于git提交失败报错POST git-receive-pack (chunked)或者HTTP 413 curl 22 The re ...

最新文章

  1. 双十一报名截止,决赛在即!AI Challenger2018极客峰会免费抢票!
  2. oracle将查询结果声明为伪表,Oracle查询操作(增删改查,伪表,高级查询)实例讲解...
  3. php怎么控制递归多少次,关于一个PHP递归处理统计的问题
  4. jMeter工具里左边树形结构里一些节点属性的介绍
  5. 线程并发库和线程池的作用_线程和并发介绍
  6. gulp-sass的有关问题
  7. 380天!理想汽车交付量突破30000辆
  8. 测试开发Python培训:抓取新浪微博抓取数据-技术篇
  9. ORACLE PL/SQL编程之八: 把触发器说透 |来自cnblogs的EricHu|
  10. 零元学Expression Blend 4 - Chapter 28 ListBox的基本运用与更改预设样式
  11. 如何理解 Python 之禅:Explicit is better than implicit?
  12. 前端性能优化:前端接口缓存方案
  13. 评分卡分箱原则及单调性
  14. 怎么通过Unity和谷歌纸盒做一个VR游戏?(译)
  15. 微信小程序请求头header_微信小程序开发:http请求
  16. esp8266_arduino源码
  17. xmind怎么导出甘特图_张兵导图:xmind如何绘制甘特图?
  18. Android中DecimalFormat的用法
  19. C++使用fill初始化二维数组
  20. python关键词_Python批量挖掘百度凤巢关键词

热门文章

  1. 排错-tcpreplay回放错误:send() [218] Message too long (errno = 90)
  2. CF 459A 459B 459C 459D 459E
  3. [科技部与你共成长] 数组循环移位
  4. MOCTF-Web-登录就对了
  5. Titanic: Machine Learning from Disaster-kaggle入门赛-学习笔记
  6. git reset之后找回本地未提交(未add+commit)的代码
  7. Navicat for MySQL 设置定时任务
  8. 时序分析:手势--空间轨迹模式识别
  9. 前嗅ForeSpider教程:如何创建新任务
  10. [OTs]I miss u folks