You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since evaluating line 242 passes the last of the OR tests when evaluating the value of version = "latest", the code will run to get the latest version of the agent.
I'm okay with that if it is intended that version has precedence over uri. If that is the case, then shouldn't I be allowed to leave the value for version to blank or omit it completely. In the case it is blank or omitted, I would expect the value of uri to be used. In this case the 3rd OR statement includes "" as true condition and causes the code to run, instead of using the uri value.
I can get around this by putting in a version value like "none" that doesn't match the 3rd OR. But I don't think this is the intended behavior.
I'm thinking potential fixes are to make the first OR condition: nrDownloadURL != "" to make the uri have precedence over the other options. Or remove the "" from the list of matching values in the 3rd OR condition, if we want version to have precedence over uri.
Either way, the version lookup doesn't appear to work for the HWC agent. I get the following error.
-----> Newrelic-Hwc-Extension Buildpack version 1.1.7
-----> Supplying Newrelic HWC Extension
Detecting New Relic...
-----> Installing NewRelic .Net Framework Agent
-----> Creating cache directory \tmp\cache\38ac941affb1650adcaf17c42780eb0d
Obtaining latest agent version
**ERROR** Unable to obtain latest agent version from the metadata bucket%!(EXTRA *url.Error=Get https://nr-downloads-main.s3.amazonaws.com/?delimiter=/&prefix=dot_net_agent/latest_release/: net/http: TLS handshake timeout)
**ERROR** Error: Get https://nr-downloads-main.s3.amazonaws.com/?delimiter=/&prefix=dot_net_agent/latest_release/: net/http: TLS handshake timeout
Failed to run all supply scripts: exit status 15
Exit status 225
I actually prefer being able to have it download the latest version. But with the lookup failing, I need to be able to point to a specific uri. While doing that, I found the issue with the blank version not using the uri.
Thanks!
Mike
The text was updated successfully, but these errors were encountered:
Hello. I'm not sure what the intended order of precedence is supposed to be between the uri and version settings in the manifest.yml.
But I think line 242 in supply.go is not working as intended.
newrelic-dotnet-buildpack-tile/hwc-extension/src/newrelic-hwc-extension/supply/supply.go
Line 242 in c26623b
With the default manifest.yml file, the uri and version are set.
Since evaluating line 242 passes the last of the OR tests when evaluating the value of version = "latest", the code will run to get the latest version of the agent.
I'm okay with that if it is intended that version has precedence over uri. If that is the case, then shouldn't I be allowed to leave the value for version to blank or omit it completely. In the case it is blank or omitted, I would expect the value of uri to be used. In this case the 3rd OR statement includes "" as true condition and causes the code to run, instead of using the uri value.
I can get around this by putting in a version value like "none" that doesn't match the 3rd OR. But I don't think this is the intended behavior.
I'm thinking potential fixes are to make the first OR condition: nrDownloadURL != "" to make the uri have precedence over the other options. Or remove the "" from the list of matching values in the 3rd OR condition, if we want version to have precedence over uri.
Either way, the version lookup doesn't appear to work for the HWC agent. I get the following error.
I actually prefer being able to have it download the latest version. But with the lookup failing, I need to be able to point to a specific uri. While doing that, I found the issue with the blank version not using the uri.
Thanks!
Mike
The text was updated successfully, but these errors were encountered: