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
Downloading the pack NXP::MCXN947_DFP@19.0.0 fails:
$ cpackget add NXP::MCXN947_DFP@19.0.0 --verbose
...
D: Downloading https://mcuxpresso.nxp.com/cmsis_pack/repo/NXP.MCXN947_DFP.19.0.0.pack
D: bad status: 404 Not Found
E: "https://mcuxpresso.nxp.com/cmsis_pack/repo/NXP.MCXN947_DFP.19.0.0.pack": bad request
The curl command with and without user agent header seems to work:
curl -LO 'https://mcuxpresso.nxp.com/cmsis_pack/repo/NXP.MCXN947_DFP.19.0.0.pack' -H 'User-Agent: Go-http-client/1.1'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9844k 100 9844k 0 0 14.8M 0 --:--:-- --:--:-- --:--:-- 14.8M
However it fails for User-Agent: cpackget/v2.1.5
Possible regression: #359
Environment (please complete the following information):
OS: [e.g. windows]
Version [e.g. v2.1.5]
The text was updated successfully, but these errors were encountered:
## Fixes
<!-- List the issue(s) this PR resolves -->
- #412
## Changes
<!-- List the changes this PR introduces -->
- Resend the HTTP GET request without user agent header when the first
attempt with `User-Agent: cpackget/v<version>` fails with status code
`StatusNotFound`
## Checklist
<!-- Put an `x` in the boxes. All tasks must be completed and boxes
checked before merging. -->
- [x] 🤖 This change is covered by unit tests as required.
- [x] 🤹 All required manual testing has been performed.
- [x] 🛡️ Security impacts have been considered.
- [x] 📖 All documentation updates are complete.
- [x] 🧠 This change does not change third-party dependencies
Downloading the pack NXP::MCXN947_DFP@19.0.0 fails:
The
curl
command with and without user agent header seems to work:However it fails for
User-Agent: cpackget/v2.1.5
Possible regression: #359
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: