Comments (5)
Hey @fcrespofastly,
thanks for your question!
The error message you provided does look like it originated from swagger, though i've not yet seen it myself.
Perhaps, could you give a short code example or a way to reproduce the above?
Also, which goharbor-client
/ goharbor
version are you using?
I'd be interested to see what would happen if you curl
-ed the request against the Harbor API as well.
Generally, an error message like the above should be more descriptive and at least contain a http status code to figure out why it failed.
from goharbor-client.
Hey thanks for your reply @elenz97 !
I just used the NewReplicationPolicy
call, client version 3.2.0, harbor version 2.1.3.
I replaced the client with a simple http client and it just works. 🤷🏻♂️
from goharbor-client.
I've by now tried several scenarios when calling NewReplicationPolicy
, in which - unfortunately - none lead to the error you described above. As it's hard for me to replicate (no pun intended) the exact behavior, could you please provide a code example (maybe in the style of an integration test like https://github.com/mittwald/goharbor-client/blob/v3.2.0/apiv2/replication/replication_integration_test.go#L30)?
I replaced the client with a simple http client and it just works. 🤷🏻♂️
Please, could you expand on this in a little more detail?
from goharbor-client.
Hey @elenz97 ! Thanks for testing this out!
Please, could you expand on this in a little more detail?
So I basically created a basic package for the service I'm building that will just send HTTP json requests to harbor API and it worked for me.
I'll try to replace it with your library when I find the time and I'll get back to you, thanks!
from goharbor-client.
Alright - please let us know if you have any other question
from goharbor-client.
Related Issues (20)
- i can not find any examples in this project HOT 2
- Create LDAP group
- Manipulate user groups
- Method NewRobotAccount in apiv2/robot client should return RobotCreated
- Incorect methods behaviour in robot client v2
- nameOrID is name not working in funtion GetProject. HOT 4
- The wrong username and password did not catch the error, the error log in harbor.v2.5.1.tar.gz is as follows HOT 6
- Methods to get Helm Charts information
- When harbor auth mode is oidc, how to user client HOT 1
- How to paginate requests HOT 5
- Error while creating a Replication Rule HOT 7
- support slash repository
- x509: certificate is valid for {private_harbor_host} HOT 4
- How to get page info HOT 1
- Support api for get configrations
- Does the api support HTTPS? Do you have reference examples of how to load certificates? HOT 1
- How to get labels from ListArtifacts interface HOT 3
- move `opts *config.Options` field
- Add containers to Harbor
- X-Total-Count type error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goharbor-client.