'Amazon.Runtime.Internal.FallbackInternalConfigurationFactory'引发了一个异常。

 s3Client = new AmazonS3Client(new BasicAWSCredentials(apcong.Value.AWSACCESSKEY, apcong.Value.AWSSECRETKEY), RegionEndpoint.USEast1);

不能与.net core 3.1一起工作

我尝试创建AmazonS3Client,但它总是空的,并抛出FallbackInternalConfigurationFactory异常。

        "InnerException": {
        "ClassName": "System.TypeInitializationException",
        "Message": "The type initializer for 'Amazon.Runtime.Internal.Settings.PersistenceManager' threw an exception.",
        "Data": null,
        "HelpURL": null,
        "StackTraceString": "   at Amazon.Util.Internal.SettingsManager.GetSettings()\r\n   at Amazon.Util.Internal.SettingsManager.TryGetObjectByProperty(String propertyName, String value, String& uniqueKey, Dictionary`2& properties)\r\n   at Amazon.Runtime.CredentialManagement.NetSDKCredentialsFile.TryGetProfile(String profileName, CredentialProfile& profile)\r\n   at Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain.TryGetProfile(String profileName, CredentialProfile& profile)\r\n   at Amazon.Runtime.Internal.ProfileInternalConfiguration.Setup(ICredentialProfileSource source, String profileName)\r\n   at Amazon.Runtime.Internal.FallbackInternalConfigurationFactory.Reset()\r\n   at Amazon.Runtime.Internal.FallbackInternalConfigurationFactory..cctor()",
        "RemoteStackTraceString": null,

        "TypeName": "Amazon.Runtime.Internal.Settings.PersistenceManager"
    },
    "HelpURL": null,
    "StackTraceString": "   at Amazon.Runtime.ClientConfig.get_RetryMode()\r\n   at Amazon.Runtime.AmazonServiceClient.BuildRuntimePipeline()\r\n   at WebApp.Controllers.SpeakerDiarizationController.ProcessAudioByTrnscribeJob(GeneralObj obj) in SpeakerDiarizationController.cs:line 58",

    "TypeName": "Amazon.Runtime.Internal.FallbackInternalConfigurationFactory"
}

解决方案:

AWSSDK.S3 3.3.104工作对我来说更新你所有的awssdk引用到相同的版本,如果你跳过任何一个降级的事情将是相同的。

给TA打赏
共{{data.count}}人
人已打赏
未分类

为什么改变我的变量值不影响我的列表?

2022-9-8 21:05:21

未分类

Angular BehaviorSubject没有从http调用中获取数据。

2022-9-8 21:05:23

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索