0

我正在使用RealEstateCore模型,并且尝试以最少的 API 调用次数上传 747 模型。我跟踪需要哪些依赖项,并且只上传不依赖尚未上传的任何内容的模型。在我第 10 次调用 API 时,我尝试上传一批 79 个模型,但遇到以下错误:

 None of the models in this request could be created due to a problem with one or more models: DtmiResolver failed to resolve requisite references to element(s): 
dtmi:digitaltwins:rec_3_3:device:AccelerationSensor;1 dtmi:digitaltwins:rec_3_3:device:AirQualitySensor;1 
dtmi:digitaltwins:rec_3_3:device:CurrentSensor;1 dtmi:digitaltwins:rec_3_3:device:DistanceSensor;1 
 <REDACTED 23 OTHER MODELS>
 See model documentation(http://aka.ms/ADTv2Models) for supported format.
 Status: 400 (Bad Request)
 ErrorCode: DTDLParserError

我的假设是这个错误表明它缺少一些依赖项。但是当我使用 API 查看模型列表时,它们都存在。是什么导致了这个错误?

更多信息:

  • 79 个模型适合 30745 字节的正文大小,根据服务限制,它应该在 32KB 的限制内。我有点困惑,因为服务限制还提到单个模型的 JSON 主体的最大大小为 1MB。
  • 我保持在每秒 100 个请求的限制内,因为这是我拨打的第 10 个电话。
  • 当我将最大正文大小设置为 25000 字节时,可以在 1 次调用中上传更少的模型。
4

0 回答 0