I created bitbucket pipeline which triggers maven release goal to generate RPM file. To generate RPM file we have base artifact in nexus repository around size of 1GB. During pipeline execution when it tries to fetch I'm getting below error:
Unable to find/resolve artifact. Could not transfer artifact {artifactname} from/to {repopath} failed: Premature end of Content-Length delimited message body (expected: 1,042,041,480; received: 462,101,847)
I tried finding any help but couldn't found any relevant reference to fix an issue. Can I please ask for help to fix it? Any leads would be much appreciated.
This error typically arises when the value of the Content-Length header does not align with the actual size of the response. This is probably due to the connection closing before receiving the entire content.