从应用程序在邮递员中运行

时间:2018-10-03 03:07:01

标签: node.js http postman

在Postman中测试服务器时,状态为404 NOT_FOUND:

  

{“错误”:{“状态代码”:404,“名称”:“错误”,“消息”:“共享类   \“ App \”没有处理GET的方法   / 56fd2bf04fbf42f357f6b112 / versions“,” stack“:”错误:共享类   \“ App \”没有处理GET的方法   / 56fd2bf04fbf42f357f6b112 / versions \ n处于静止状态RemoteMethodNotFound   (D:\ PKL \ Cyclone后端\ node_modules \ strong-remoting \ lib \ rest-adapter.js:388:17)\ n   在Layer.handle [作为handle_request]   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ layer.js:95:5)\ n   在trim_prefix   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:317:13)\ n   在   D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:284:7 \ n   在Function.process_params   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:335:12)\ n   在下一个   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:275:10)\ n   在Function.handle   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:174:3)\ n   在路由器   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:47:12)\ n   在Layer.handle [作为handle_request]   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ layer.js:95:5)\ n   在trim_prefix   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:317:13)\ n   在   D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:284:7 \ n   在Function.process_params   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:335:12)\ n   在下一个   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ index.js:275:10)\ n   在jsonParser   (D:\ PKL \ Cyclone-后端\ node_modules \ body-parser \ lib \ types \ json.js:103:7)\ n   在Layer.handle [作为handle_request]   (D:\ PKL \ Cyclone-backend \ node_modules \ express \ lib \ router \ layer.js:95:5)\ n   在trim_prefix   (D:\ PKL \ cyclone-backend \ node_modules \ express \ lib \ router \ index.js:317:13)“}}

Screenshot Here

1 个答案:

答案 0 :(得分:0)

基本上404请求通常是由于输入了错误的URL或错误的HTTP方法所致。您可以对它们进行仔细检查,然后找到解决方法。