Attempting to setup a commit hook and getting a 405 Http Method put is not supported by this URL

Hello,

I'm playing around with disabling automatic timed polling to SVN and replacing with a commit hook. 

I've attempted sending a PUT to my Fisheye instance and get a 405 error.

My URL looks something like this (taken out actual server names etc)

 

http://{myserver}:8060/fisheye/fecru/rest-service-fecru/admin/repositories/{reponame}/incremental-index

I have set the headers X-Api-Key and the Content Type. 

Repo name I've used the repo name as set in Fisheye.

 

Pete

 

3 answers

1 accepted

1 vote

Are you sure /fisheye/fecru is the correct Web Context of your instance?  Can you go to Admin / Global Settings / Server page, and check the Web context value in Web Server section?

Perhaps the valid URL would be

  • /fecru/rest-service-fecru/admin/repositories/{repoName}/incremental-index or
  • /fisheye/rest-service-fecru/admin/repositories/{repoName}/incremental-index or
  • /rest-service-fecru/admin/repositories/{repoName}/incremental-index

depending on the actual Web context value?

Basically, go to dashboard page of your instance and append /rest-service-fecru/admin/repositories/{repoName}/incremental-index to its URL.

Hope that helps,

0 vote

That seems like a valid URL of https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories:name:incremental-index endpoint.   Can you enable debug logging (Admin / Server page) and show me the logs captured when the request was being sent to server, please?   Also, what FishEye version do you use?

Hi Piotr,

 

2015-11-12 21:00:40,672 DEBUG [qtp1764996806-265 ] fisheye ProfilingServletFilter-logRequest - start request PUT /fisheye/fecru/rest-service-fecru/admin/repositories/sxweb/incremental-index nosession 2015-11-12 21:00:40,672 DEBUG [qtp1764996806-265 ] fisheye ProfilingServletFilter-logRequest - end request in 0ms PUT /fisheye/fecru/rest-service-fecru/admin/repositories/sxweb/incremental-index nosession 405 mem=0.073MB 2

Here's the log.  A couple of things, I'm running a redirect to this server and have tried both the redirect and direct address's.

 

Pete

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 2 hours ago in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

21 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you