UiPath-Services / UiPath-DevOps-Scripts

26 stars 23 forks source link

413 Request Entity Too Large error in gitlab runner while running the deployment #12

Closed taragurung closed 4 months ago

taragurung commented 4 months ago

The deployment has started to fail now with following error message uipcli: Data collection is enabled. For more information, please visit https://docs.uipath.com/test-suite/automation-suite/2023.4/user-guide/uipath-command-line-interface FeedId for FolderId 829345: . 5/6/2024 10:29:22 AM Unable to deploy project. Exit code 1 System.InvalidOperationException: Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'RequestEntityTooLarge' at UiPath.Web.Client20_4.Processes.UploadPackageWithHttpMessagesAsync(Stream file, Nullable1 feedId, Stream file1, Stream file2, Stream file3, Stream file4, Stream file5, Stream file6, Stream file7, Stream file8, Stream file9, Dictionary2 customHeaders, CancellationToken cancellationToken) at UiPath.Orchestrator.Client.Util.ExceptionsHandler.RunWithFriendlyExceptionMessages[T](Func1 func)

413 Request Entity Too Large

413 Request Entity Too Large


nginx

at UiPath.Orchestrator.Client.Util.ExceptionsHandler.RunWithFriendlyExceptionMessages[T](Func1 func) at UiPath.Orchestrator.Client.Endpoints.Processes.UploadPackagesAsync(List1 files, Nullable1 feedId, Dictionary2 customHeaders, CancellationToken cancellationToken) at UiPath.CommandLine.Services.Impl.DeployService.UploadPackage(String correlationId, IOrchestratorClient client, String packagePath, PackageType packageType, String orchestratorUrl, String orchestratorTenant) at UiPath.CommandLine.Services.Impl.DeployService.<>cDisplayClass5_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CommandLine.Extensions.EnumerableExtensions.<>cDisplayClass0_0`2.<b2>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CommandLine.Extensions.EnumerableExtensions.SelectParallel[TIn,TOut](IEnumerable1 inputList, Func2 function, Int32 numberOfObjectsInParallel, CancellationToken token) at UiPath.CommandLine.Services.Impl.DeployService.Run(DeployOptions options) at UiPath.CommandLine.Services.Impl.OptionsParser.<>cDisplayClass11_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CommandLine.Services.Impl.OptionsParser.<>cDisplayClass10_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CommandLine.Services.Impl.OptionsParser.<>c__DisplayClass9_0.<b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CommandLine.Services.Impl.OptionsParser.RunOptions(String[] args, Func3 notParsedFunc)

SE-Abdullah commented 4 months ago

Hi @taragurung, thank you for reporting this. Can you tell me the size of the NuGet package you are trying to deploy to orchestrator? Are you facing this issue with one specific NuGet package or all packages even small ones? Are you using Cloud or on-prem?

taragurung commented 4 months ago

The package size is more then 300MB now. and should be the reason for not working And we are using Cloud so, is it possible to increase it for Cloud?

SE-Abdullah commented 4 months ago

I'm not sure what the limit is but for sure 300mb for an RPA nuget package is very large and unusual. Try to reduce the file size by removing unnecessary files including from the screenshot folder in the project. This error is returned from the CLI and not from the PowerShell scripts in this solutions.