使用预触发调用Cosmos存储过程 [英] Call Cosmos Stored Procedure with Pre-Trigger
问题描述
我们正在通过Azure API调用Cosmos存储过程(SP). Sp具有创建文档的功能并且可以正常工作.但是,当我们使用预触发调用SP时,出现以下错误.触发器会根据文档进行一些计算.
We are calling Cosmos Stored Procedure (SP) through Azure API. Sp has functionality to create document and works fine. But when we call SP with pre-trigger getting the below error. Trigger has some calculation based on the document.
https://Azure API的URL
https:// URL for Azure API
x-ms-documentdb-partitionkey - Works fine
x -ms-documentdb-pre-trigger-include:触发器名称
获取出现以下错误.
推荐答案
您好,Prigail,
Hi Prigail,
您有错误代码吗?您是否收到HTTP状态代码= 400?
Do you have the error code; are you receiving a HTTP Status Code = 400?
Create Trigger - Response
这可能就像格式错误的Json一样简单.需要更多详细信息以进行更彻底的调查.
This could be as simple as malformed Json. Need more details to investigate more thoroughly.
谢谢
迈克
这篇关于使用预触发调用Cosmos存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!