Closed MattA48 closed 1 year ago
true, the current implementation is not made to handle redirects, only direct urls.
from my quick look, the url provided https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-5.0.18.tgz
resolves 200 and not 302
i dont think this will be changed anytime soon
i dont know why this was not properly tagged, but follow-redirects
has been added and is in use, it will follow up to 2
redirects by default
added via #786, released since 8.14.0
Versions
What is the Problem?
When running tests, the attempted download of Mongo fails with
DownloadError: Download failed for url "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-5.0.18.tgz", Details: Status Code isnt 200! (it is 302)
Trying to follow the link in Chrome, there is indeed a 302 redirect with message 'moved temporarily'
Code Example
Any simple script that requires mms to download a new Mongo
Debug Output
Debug Output
```txt Starting the MongoMemoryServer Instance failed, enable debug log for more information. Error: DownloadError: Download failed for url "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-5.0.18.tgz", Details: Status Code isnt 200! (it is 302) at ClientRequest.fastdl have a temporary redirect and the downloader isn't configured to respect this