GithubHelp home page GithubHelp logo

Comments (5)

elenz97 avatar elenz97 commented on June 3, 2024

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.

fcrespofastly avatar fcrespofastly commented on June 3, 2024

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.

elenz97 avatar elenz97 commented on June 3, 2024

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.

fcrespofastly avatar fcrespofastly commented on June 3, 2024

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.

elenz97 avatar elenz97 commented on June 3, 2024

Alright - please let us know if you have any other question 👍

from goharbor-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.