我正在尝试从他们提供的 API 加载 AWS ip 范围,如下面的查询所示。如果我使用正确的网址“https://ip-ranges.amazonaws.com/ip-ranges.json”,我会收到如下所示的错误消息。但是,如果我对托管在我自己的网址“https://raw.githubusercontent.com/anandmudgerikar/aws-ips/main/ip-ranges.json”的 json 运行相同的查询,则查询工作正常。知道会发生什么吗?提前致谢。
Kusto 查询:
externaldata(syncToken:string, createDate:string, prefixes: dynamic , ipv6_prefixes: dynamic)
[
h@'https://ip-ranges.amazonaws.com/ip-ranges.json'
//h@'https://api.github.com/users/anandmudgerikar/repos'
// h@'https://reqres.in/api/product/3'
//h@'https://www.dropbox.com/s/24117ufuyfanmew/ip-ranges.json'
//h@'https://raw.githubusercontent.com/anandmudgerikar/aws-ips/main/ip-ranges.json'
]
with(format= 'multijson', ingestionMapping=
'[{"Column":"syncToken","Properties":{"Path":"$.syncToken"}},'
'{"Column":"createDate","Properties":{"Path":"$.createDate"}},'
'{"Column":"prefixes","Properties":{"Path":"$.prefixes"}},'
'{"Column":"ipv6_prefixes","Properties":{"Path":"$.ipv6_prefixes"}}]')
这是我收到的错误消息:
Query execution has resulted in error (0x80004003): Partial query failure: Invalid pointer (message: 'Argument 'name' is null: at .ctor in C:\source\Src\Common\Kusto.Cloud.Platform.Azure\Storage\PersistentStorage\BlobPersistentStorageFile.cs: line 55
Parameter name: name: ', details: 'Source: Kusto.Cloud.Platform
System.ArgumentNullException: Argument 'name' is null: at .ctor in C:\source\Src\Common\Kusto.Cloud.Platform.Azure\Storage\PersistentStorage\BlobPersistentStorageFile.cs: line 55
Parameter name: name
at Kusto.Cloud.Platform.Utils.Ensure.FailNullOrEmpty(String value, String argName, String callerMemberName, String callerFilePath, Int32 callerLineNumber) in C:\source\Src\Common\Kusto.Cloud.Platform\Diagnostics\Ensure.cs:line 150
at Kusto.Cloud.Platform.Azure.Storage.PersistentStorage.BlobPersistentStorageFile..ctor(CloudBlobContainer blobContainer, String name, IPersistentStorageFileCompressor persistentStorageFileCompressor, IPersistentStorageUri persistentStorageUri, TriState validBlobStorage, FileKnownMetadata knownMetadata) in C:\source\Src\Common\Kusto.Cloud.Platform.Azure\Storage\PersistentStorage\BlobPersistentStorageFile.cs:line 56
at Kusto.Cloud.Platform.Azure.Storage.PersistentStorage.BlobPersistentStorageFactory.CreateFileRef(String uri, IKustoTokenCredentialsProvider credentialsProvider, String compressionType, IPersistentStorageFileCompressorFactory persistentStorageFileCompressorFactory, StorageItemLocationMode locationMode, FileKnownMetadata knownMetadata) in C:\source\Src\Common\Kusto.Cloud.Platform.Azure\Storage\PersistentStorage\BlobPersistentStorageFactory.cs:line 214
at Kusto.Cloud.Platform.Storage.PersistentStorage.PersistentStorageFactoryFactory.CreateFileRef(String uri, IKustoTokenCredentialsProvider credentialsProvider, String compressionType, IPersistentStorageFileCompressorFactory persistentStorageFileCompressorFactory, StorageItemLocationMode locationMode, FileKnownMetadata knownMetadata) in C:\source\Src\Common\Kusto.Cloud.Platform\Storage\PersistentStorage\PersistentStorageFactoryFactory.cs:line 154
at Kusto.DataNode.DataEngineQueryPlan.ExternalDataQueryUtils.ReadExternalDataAsCsv(ArtifactEntry artifactEntry, DataSourceStreamFormat format, ExternalDataQueryCallbackContext callbackContext, Int64 recordCountLimit, String& columnsMapping) in C:\source\Src\Engine\DataNode\QueryService\DataEngineQueryPlan\ExternalDataQueryUtils.cs:line 101
at Kusto.DataNode.DataEngineQueryPlan.DataEngineQueryProcessor.DataEngineQueryCallback.GetExternalData(String externalDataUri, DataSourceStreamFormat format, String serializedCallbackContext, Int64 recordCountLimit) in C:\source\Src\Engine\DataNode\QueryService\DataEngineQueryPlan\DataEngineQueryProcessor.cs:line 399').
clientRequestId: KustoWebV2;71c590e6-27ab-41c9-bf3c-03ba4ee0cf3b