小编Sap*_*Dey的帖子

GAE 中 Node JS 项目中的 HTTP 413 请求实体太大

我在 GAE 上部署了我的后端应用程序。在其中,我有一个 API,它将文件上传到 GCS 存储桶。最近我尝试上传超过 50mb 的文件并得到413 Request entity too large

做了一些研究,发现问题出在ngnix. API 将提供413大于 32Mb 的任何文件。

找到一个解决方案,其中提到包含ngnix.conf文件并添加client_max_body_size 80M到其中。我这样做了,但仍然得到同样的错误。

这是我的ngnix-app.conf文件

server{
 location / {
        client_max_body_size       80m;
        client_body_buffer_size    512k;
  }
}
Run Code Online (Sandbox Code Playgroud)

有什么明显的东西让我错过了吗?

google-app-engine json nginx node.js body-parser

3
推荐指数
1
解决办法
5176
查看次数

WebStorm上的Mongo Shell无法正常工作

我试图从WebStorm打开Mongo Shell.我已经安装了Mongo插件,并且还从Mongo Explorer中设置了一个mongodb服务器.在我尝试打开Mongo shell时连接后,我收到此错误:

Invalid command: localhost:27017/local
Options:

General options:
  -h [ --help ]                         show this usage information
  --version                             show version information
  -f [ --config ] arg                   configuration file specifying 
                                        additional options
  -v [ --verbose ] [=arg(=v)]           be more verbose (include multiple times
                                        for more verbosity e.g. -vvvvv)
  --quiet                               quieter output
  --port arg                            specify port number - 27017 by default
  --bind_ip arg                         comma separated list of ip addresses to
                                        listen on - all local ips by default
  --ipv6                                enable IPv6 …
Run Code Online (Sandbox Code Playgroud)

mongodb webstorm

0
推荐指数
1
解决办法
4222
查看次数