The requested URL was not found on the server
問題重現:
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語句的味道,請求中附帶的連結和括號中的值匹配時,就執行括號後面的相關語句。
相關文章
- boot VMware server no found local?bootServer
- MySQL server PID file could not be found!MySqlServer
- cornerstone the server may be unreachable or the url may be incorrectServer
- Client does not support authentication protocol requested by server; consider upgrading MySQL clientclientProtocolServerIDEMySql
- 使用 http-proxy 代理 HTTP 請求時遇到的 the requested url is invalid 錯誤訊息HTTP
- 解決ntp的錯誤 no server suitable for synchronization foundServerUI
- Mysql啟動錯誤-server PID file could not be foundMySqlServer
- git推送到github報錯:error: The requested URL returned error: 403 Forbidden while accessing https://github.comGithubErrorORBWhileHTTP
- MysqL錯誤之_ERROR! MySQL server PID file could not be found!MySqlErrorServer
- WebStorm Exception: ...requested without authorization...WebORMException
- You do not have permission to get URL ‘/’ from this server解決方案Server
- ajax如何刪除X-Requested-With
- SNMP TABLE ERROR : Requested table is empty or does not existError
- navicat本地連線mysql出現1251--Client does not support authentication protocol requested by server的解決方法MySqlclientProtocolServer
- 使用Server.Transfer對URL進行隱藏以及其他 (轉)Server
- Requested setting INSTALLED_APPSAPP
- do not have permission to view information for any of the hosts you requestedViewORM
- 有關The Requested Item Or One Of Its Components Is Not Collected
- Angular 伺服器端渲染兩個相關的 SERVER_REQUEST_URL 和 SERVER_REQUEST_ORIGINAngular伺服器Server
- <url-pattern>/</url-pattern>和<url-pattern>/*</url-pattern>區別
- SSL - SSLHandshakeException: unable to find valid certification path to requested targetException
- UDI-00010: multiple job modes requested, schema and tables
- Apache無法啟動解決 the requested operation has failedApacheAI
- URL與URL編碼詳解
- pip: command not found
- HttpServlet was not found on the JavaHTTPServletJava
- can't assign requested address 錯誤解決
- MySQL主從同步報Client requested master to start replication from positionMySql主從同步clientAST
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:ENDPOINT_URL子句SQLServer
- Django --URLDjango
- javaweb urlJavaWeb
- ASP.NET URL Rewrite. URL重寫ASP.NET
- ORA-03297: file contains used data beyond requested RESIZE valueAI
- vue 踩坑-This dependency was not foundVue
- mac mysql: command not foundMacMySql
- As 除錯 no target device found除錯dev
- Framework not found AFNetworkingFramework
- express: command not found.Express