简体   繁体   English

击中Firebase功能时接收414

[英]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.

相关问题 击中github API端点时收到401“不良凭证” - Receiving 401 “Bad Credentials” when hitting github API endpoint Firebase云消息传递出现错误 - Firebase cloud messaging hitting error Firebase 云 function 收到 204 响应码后挂起 - Firebase Cloud function hanging after receiving 204 response code 应用程序因Firebase的Cloud Functions而被终止FCM时未收到通知 - Not receiving notifications when app is killed FCM with Cloud Functions for Firebase Firebase 使用 Node Js 功能通知未在 android 中接收,但它直接从 Firebase 面板工作 - Firebase using Node Js function notification not receiving in android but it work directly from firebase panel 得到错误的结果:从 AngularJS 中点击 api 并使用 NodeJS 从 firebase 查询结果时出现时区问题 - Getting wrong results: Time-zone issue when hitting api from AngularJS and quering for result from firebase using NodeJS 如何测试节点文件,在生成函数时收到“EACCES”错误 - How to test an node file, receiving an 'EACCES' error when spawning the function 尝试将await函数的返回值设置为常量时接收到undefined - Receiving undefined when trying to set return value of await function as a constant 尝试访问 Puppeteer 调用中的函数参数时收到 ReferenceError - Receiving ReferenceError when trying to access function parameter in Puppeteer call 运行云时收到 [Error: NOT_FOUND] Function - Receiving [Error: NOT_FOUND] when running a Cloud Function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM