nexus3 - Cannot download asset in Sonatype Nexus Repository OSS - Stack Overflow

admin2025-05-01  0

I have a self-hosted Nexus on Windows server and I want to do something as follows:

I uploaded a file, the_file.zip to a custom (file) blob, so-called the_blob, that links to the raw (hosted) repository, the_repo. Here is the result

I come the API Search and download asset: /v1/search/assets/download, with the curl configuration as follow

curl -X 'GET' \
  'http://localhost:8081/service/rest/v1/search/assets/download?repository=the_repo' \
  -H 'accept: application/json' \
  -H 'NX-ANTI-CSRF-TOKEN: 0.8617832718141006' \
  -H 'X-Nexus-UI: true'

Unfortunately, I got the error as follows:

What can I try next?

I have a self-hosted Nexus on Windows server and I want to do something as follows:

I uploaded a file, the_file.zip to a custom (file) blob, so-called the_blob, that links to the raw (hosted) repository, the_repo. Here is the result

I come the API Search and download asset: /v1/search/assets/download, with the curl configuration as follow

curl -X 'GET' \
  'http://localhost:8081/service/rest/v1/search/assets/download?repository=the_repo' \
  -H 'accept: application/json' \
  -H 'NX-ANTI-CSRF-TOKEN: 0.8617832718141006' \
  -H 'X-Nexus-UI: true'

Unfortunately, I got the error as follows:

What can I try next?

Share Improve this question edited Jan 2 at 19:58 halfer 20.4k19 gold badges109 silver badges202 bronze badges asked Jan 2 at 14:37 UvuvwevwevweUvuvwevwevwe 1,0413 gold badges19 silver badges33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This is because of the invalid directory name, i.e. /C:/Users/foo/Downloads.

Please use some "normal" directory name, for example, the_directory_name, or semantic version like 1.2.3

转载请注明原文地址:http://anycun.com/QandA/1746114499a91870.html