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語句的味道,請求中附帶的連結和括號中的值匹配時,就執行括號後面的相關語句。
相關文章
- Client does not support authentication protocol requested by server; consider upgrading MySQL clientclientProtocolServerIDEMySql
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- 高版本mysql訪問出現Client does not support authentication protocol requested by server;MySqlclientProtocolServer
- 使用 http-proxy 代理 HTTP 請求時遇到的 the requested url is invalid 錯誤訊息HTTP
- Requested setting INSTALLED_APPSAPP
- navicat本地連線mysql出現1251--Client does not support authentication protocol requested by server的解決方法MySqlclientProtocolServer
- WebStorm Exception: ...requested without authorization...WebORMException
- Angular 伺服器端渲染兩個相關的 SERVER_REQUEST_URL 和 SERVER_REQUEST_ORIGINAngular伺服器Server
- DataTables 1.10錯誤: requested unknown parameter
- -bash: id: command not found -bash: tty: command not found
- SSL - SSLHandshakeException: unable to find valid certification path to requested targetException
- kubeadm not found
- nodemon: command not found
- pip: command not found
- found an invalid color
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:ENDPOINT_URL子句SQLServer
- url
- mac mysql: command not foundMacMySql
- zsh:command not found: xxx
- ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
- Android:Unexpected lock protocol found in lock file. Expected 3, found 0.AndroidProtocol
- URL toJSON()JSON
- Django --URLDjango
- POST URL 地址資料開啟URL地址
- ES叢集搭建問題:memory locking requested for elasticsearch process but memory is not lockedElasticsearch
- gipchaLowerProcessNode: no valid interfaces found to node
- /bin/sh: 1: pahole: not found
- vue 踩坑-This dependency was not foundVue
- Newline required at end of file but not foundUI
- Mac -bash: mysql: command not foundMacMySql
- Trait 'Illuminate\Auth\UserTrait' not foundAI
- No WebApplicationContext found: no ContextLoaderListener or DispatcherServlet registeredWebAPPContextServlet
- InnoDB: No valid checkpoint found.
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- As 除錯 no target device found除錯dev
- Page 'http://localhost:63342/d…css/bootstrap.min.css.map' requested without authHTTPlocalhostCSSboot
- url規則
- JavaScript URL 物件JavaScript物件