Hi
item found using search api but can’t be deleted or read ( returns 404) when using assets api.
our asset is a raw asset
Sometime it does work, but mostly it doesnt.
see below - query the same asset 3 times with no quote, double quote and single quote - all returning 404.
You are getting 404 Not Found response when trying to get or delete an asset, because that asset does not exists in your repository. However, you keep seeing the asset in your search results, because your search index might be out of date. Please run “Repair - Rebuild repository search” task and try again to search again after the task completes. Here’s documentation page for the tasks: Tasks
We are continuously improving the product and fixing any reported bugs, so please upgrade to the latest version to ensure you are using the latest and greatest version of our products.
I will ask the nexus owner to repair the indexes , still , can it be that I can see the same artifact in the UI, but still have a 404 when trying to delete it using the api?
For the above example - I can see price-managementhook/price-managementhook-2012.12.1-3.tgz in the UI and download it without problems, meaning that the artifact is there.
today I saw a similar case which ended with a 405 error, the search API worked ok and returned the ID, the object is also visible in UI.
Can you share why 405 is thrown here ?
“path” : “account-financialaccounthook/account-financialaccounthook-2109.1310.4.tgz”,
“id” : “dG1vX3JlcG9zaXRvcnlfaGVsbTo4ZGEzZDMyOGZiYmExNjUwMTBiMjRjYjI0OTNkMDAwZQ”,
I don’t believe that NXRM will throw a 405 based on the url you are showing and what the REST API says. It’s possible you are getting blocked by a proxy server (ie nginx). Check the sonatype-work/nexus3/log/request.log to ensure that your request is actually reaching the nexus instance. If it is you’ll want to see if there are any strange errors in the nexus.log.
Hi
There is no proxy present between the two machines, the search api as well as deletion of docker images and even certain Delete assets (few) calls do pass without problem, majority of the delete assets call that I generated in script (first run search, next build the delete assets call based on the ID from the first call) are failing either on 404 or 405 errors.
I will ask to check the nexus log next week.
Hi
we checked Nexus request logs - the requests are there, we also checked the general nexus.log - nothing is showing in the case of 405 error
I also tried to use the GET asset API for the same ID which I received using the search API, this is resulting in 404 error (not found)
last thing we did was to run the ‘re-index’ task , results are the same.
as for licensing, unfortunately we dont have a support license