«Amazon.Runtime.Internal.FallbackInternalConfigurationFactory» вызвало исключение - PullRequest
0 голосов
/ 24 апреля 2020
 s3Client = new AmazonS3Client(new BasicAWSCredentials(apcong.Value.AWSACCESSKEY, apcong.Value.AWSSECRETKEY), RegionEndpoint.USEast1);

не работает с net ядром 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"
}

1 Ответ

0 голосов
/ 24 апреля 2020

AWSSDK.S3 3.3.104 работал для меня, обновите все ваши ссылки на awssdk на одну и ту же версию, если вы пропустите одну из них, чтобы понизить версию до тех же

...