[英]Receiving 414 When Hitting Firebase Function
I am receiving an error when posting to my google cloud function - from salesforce execute anonymous - which just takes in the request an saves the body in the Firestore. 从Salesforce执行匿名发布到我的Google Cloud函数时,我收到一个错误,该错误仅接受请求并将其保存在Firestore中。
414 URI Too Long is the response status. 414 URI太长是响应状态。
The error doesn't make sense because the url i am hitting is 60 characters long including https://. 该错误没有任何意义,因为我打到的URL长为60个字符,包括https://。
So I think this means that my body is too large because i don't get the same error when posting a smaller body. 所以我认为这表示我的身体太大,因为张贴较小的身体时不会出现相同的错误。
So my question is: Is there a way to change the default size limit for incoming requests? 所以我的问题是:是否可以更改传入请求的默认大小限制?
The 414 response was from Salesforce, not from Firebase. 414响应来自Salesforce,而不是Firebase。 I was using the execute anonymous window to post this request and it turns out that there is a limit when executing code this way.
我使用了执行匿名窗口来发布此请求,结果发现以这种方式执行代码时有一个限制。 I was able to submit my request using the salesforce cli command sfdx force:execute instead.
我能够使用salesforce cli命令sfdx force:execute提交请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.