One of our build agents consistently receives a 500 error while obtaining node packages:
An error occurred processing a GET request to http://OURSERVERNAME/npm/npm/@angular/material/-/material-12.2.13.tgz: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
Stack trace:
System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64String(String s)
at Inedo.ProGet.WebApplication.Security.WebApiContext.CreateFromBasicAuth(HttpContext context)
at Inedo.ProGet.WebApplication.FeedEndpoints.Npm.NpmHandler.CreateWebApiContext(HttpContext context, NpmFeed feed, String relativeUrl)
at Inedo.ProGet.WebApplication.FeedEndpoints.FeedHandler`1.Inedo.ProGet.WebApplication.FeedEndpoints.IFeedHandler.ProcessRequestAsync(HttpContext context, Feed feed, String relativeUrl)
at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.<ProcessRequestAsync>d__8.MoveNext()
The build agents (also the ones that do work) are reported
yarn/1.22.0+npm/?+node/v12.14.1+win32+x64
We though this may be a yarn-spoecific isue so we upgrade yarn (from 122.0 to 1.22.17) but no luck:
yarn/1.22.17+npm/?+node/v12.14.1+win32+x64
The node version is the same between machines
As the stack trace indicated this may be related to authentication, we also queried if there was anything wrong with our authentication, by running:
npm whoami --registry=http://OURSERVER/npm/npm_internal/
Which returned the name of our authenticated user.
Any suggestion on what we could log to have more clarity?