gpt4 book ai didi

heroku nodejs 中的请求 URI 太长

转载 作者:行者123 更新时间:2023-12-05 04:11:38 24 4
gpt4 key购买 nike

我在调用托管在 heroku 上的 REST API 时收到以下错误,该 API 是用 nodejs 编写的。

我尝试了提到的所有选项 here , 但看起来这个问题是不同的,因此没有帮助。

我正在使用 nodejs、expressjs、bodyparser。

这在我的本地机器上运行良好,但在 heroku 中出现此错误。

POST 414(请求 URI 太长)

最佳答案

不幸的是,Heroku 在限制请求行上被锁定为 8kb

The request line of the HTTP request is limited to 8192 bytes

https://devcenter.heroku.com/articles/http-routing#http-validation-and-restrictions

关于heroku nodejs 中的请求 URI 太长,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42376065/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com