Express4.13 post一个转为base64的图片,服务器报500error post普通的对象是正常的
发布于 3 个月前 作者 297854895 236 次浏览 来自 问答

POST /shotPicUpload 500 31.140 ms - 1258 Error: Failed to lookup view “error” in views directory "d:\documents\hbuilderpr oject\myapp\views" at EventEmitter.render (d:\documents\hbuilderproject\myapp\node_modules\expr ess\lib\application.js:579:17) at ServerResponse.render (d:\documents\hbuilderproject\myapp\node_modules\ex press\lib\response.js:961:7) at d:\documents\hbuilderproject\myapp\app.js:60:7 at Layer.handle_error (d:\documents\hbuilderproject\myapp\node_modules\expre ss\lib\router\layer.js:71:5) at trim_prefix (d:\documents\hbuilderproject\myapp\node_modules\express\lib
router\index.js:310:13) at d:\documents\hbuilderproject\myapp\node_modules\express\lib\router\index. js:280:7 at Function.process_params (d:\documents\hbuilderproject\myapp\node_modules
express\lib\router\index.js:330:12) at IncomingMessage.next (d:\documents\hbuilderproject\myapp\node_modules\exp ress\lib\router\index.js:271:10) at done (d:\documents\hbuilderproject\myapp\node_modules\express\lib\respons e.js:956:25) at EventEmitter.render (d:\documents\hbuilderproject\myapp\node_modules\expr ess\lib\application.js:581:14)

1 回复

难道post是有大小限制?我post一个普通的对象,服务器能接收到,是不是base64太长了?我试过用multer这个上传文件的中间件也是一样的500错误,求大神解惑!

回到顶部