Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Returned HTTP response : 409 #139

Closed
payals2387 opened this issue Oct 4, 2017 · 8 comments
Closed

Server Returned HTTP response : 409 #139

payals2387 opened this issue Oct 4, 2017 · 8 comments

Comments

@payals2387
Copy link

Hi,

I am trying to upload a Pact File into Pact Broker using https://github.com/warmuuh/pactbroker-maven-plugin. But receiving 409 error from the Broker.
However, there is no file with the Consumer/Provider I am trying to upload in the Broker.
Can someone help to fix this?

Thanks

@bethesque
Copy link
Member

bethesque commented Oct 4, 2017

@uglyog please can you pleeeeeeease you fix the error message for this?

The full error message (which it seems you're not seeing) @payals2387 is:

This is the first time a pact has been published for "%{new_name}".
The name "%{new_name}" is very similar to the following existing consumers/providers:
%{existing_names}
If you meant to specify one of the above names, please correct the pact configuration, and re-publish the pact.
If the pact is intended to be for a new consumer or provider, please manually create "%{new_name}" using the following command, and then re-publish the pact:
$ curl -v -XPOST -H "Content-Type: application/json" -d "{\"name\": \"%{new_name}\"}" %{create_pacticipant_url}
If the pact broker requires authentication, include the '-u' flag with the proper credentials:
$ curl -v -XPOST -u <username>:<password> -H "Content-Type: application/json" -d "{\"name\": \"%{new_name}\"}" %{create_pacticipant_url}

@bethesque
Copy link
Member

Sorry Ron, it's not your plugin is it? But I know the official one has the same issue.

@bethesque
Copy link
Member

I've raised an issue asking for the response body to be printed when there is an error.

@payals2387
Copy link
Author

@bethesque Thanks a lot. That really helped me for now! 👍

@uglyog
Copy link
Member

uglyog commented Oct 5, 2017

@bethesque can we pleeeeeeease remove this feature?

@bethesque
Copy link
Member

Do you want to clean up the data mess?!?!

@bethesque
Copy link
Member

Out of interest @payals2387 was the error a false positive or true one? I'm trying to reduce the number of false positives, so it would help if you gave me an example of what your "conflicting" service names were.

@bethesque
Copy link
Member

Ron, just for you 6ab3fda

I've turned it off for your saas broker already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants