在heroku nodejs中Request-URI太长
问题描述:
调用在nodejs中编写的托管在heroku上的REST API时出现以下错误。在heroku nodejs中Request-URI太长
我试过所有选项here,但它看起来像这个问题是不同的,因此没有帮助。
我正在使用nodejs,expressjs,bodyparser。
这在我的本地机器上工作正常,但是在heroku中给出了这个错误。
POST 414(请求URI太长)
答
不幸的Heroku被锁定到8KB上限制请求线
HTTP请求的请求行被限制在8192个字节
https://devcenter.heroku.com/articles/http-routing#http-validation-and-restrictions