Open Closed

Unable to upload the file in AWS using abp.io file management #3365


User avatar
0
deepak created
  • ABP Framework version: v4.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: "System.UriFormatException: Invalid URI: Invalid port specified. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Amazon.S3.AmazonS3Config.GetUrl(RegionEndpoint regionEndpoint, String regionEndpointServiceName, Boolean useHttp, Boolean useDualStack) at Amazon.S3.AmazonS3Config.DetermineServiceURL() at Amazon.Runtime.Internal.DefaultRetryPolicy..ctor(IClientConfig config) at Amazon.Runtime.AmazonServiceClient.BuildRuntimePipeline() at Amazon.Runtime.AmazonServiceClient..ctor(AWSCredentials credentials, ClientConfig config) at Amazon.Runtime.AmazonServiceClient..ctor(String awsAccessKeyId, String awsSecretAccessKey, ClientConfig config) at Amazon.S3.AmazonS3Client..ctor(String awsAccessKeyId, String awsSecretAccessKey, AmazonS3Config clientConfig) at Amazon.S3.AmazonS3Client..ctor(String awsAccessKeyId, String awsSecretAccessKey, RegionEndpoint region) at Volo.Abp.BlobStoring.Aws.DefaultAmazonS3ClientFactory.GetAmazonS3Client(AwsBlobProviderConfiguration configuration) at Volo.Abp.BlobStoring.Aws.AwsBlobProvider.GetAmazonS3Client(BlobProviderArgs args) at Volo.Abp.BlobStoring.Aws.AwsBlobProvider.SaveAsync(BlobProviderSaveArgs args) at Volo.Abp.BlobStoring.BlobContainer.SaveAsync(String name, Stream stream, Boolean overrideExisting, CancellationToken cancellationToken) at Volo.FileManagement.Files.FileManager.CreateAsync(String name, String mimeType, IRemoteStreamContent content, Nullable1 directoryId, Nullable1 tenantId, Boolean overrideExisting) at Volo.FileManagement.Files.FileDescriptorAppService.CreateAsync(Nullable1 directoryId, CreateFileInputWithStream inputWithStream) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Features.FeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceed"

I have used the file management system module of abp.io to upload and download the file and using the AWS to store the files. But when I am trying to upload the file or files then it is throwing an error .


6 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Invalid URI: Invalid port specified

    hi

    What's theRegion setting of AWS?

  • User Avatar
    0
    deepak created

    Hi,

    Currently, I have set the region of AWS configuration is "Region": "us-east-2". And I don't know about the setting that you asked in above comment.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We will check our code.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I checked the unit tests, and it works.

    Can you share the AWS configuration with me via email? thanks. shiwei.liang@volosoft.com

  • User Avatar
    0
    deepak created

    hi

    I am using abp.io version 4.3.3 . Is there any version conflicts?

    Thanks

  • User Avatar
    0
    deepak created

    hi,

    It is working now. Thanks for your support.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07