Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request

Tags:

eclipse

svn

I have a project on Google Code, and I am using SVN.

Everything was working fine with that project in Eclipse.

But today I created new project in Google Code. And when trying to add my project from Eclipse to the Google repository which I created it gives an error.

The error in the Eclipse console is:

svn: Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'https://code.google.com/............'

Eclipse shows this when committing:

org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/a5a68afd-6b33-2247-9d70-58e42b6f6f4b'

org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/a5a68afd-6b33-2247-9d70-58e42b6f6f4b'
like image 962
Irene Avatar asked Nov 22 '11 17:11

Irene


People also ask

How do I fix 405 Method not allowed in Postman?

405 Method No Allowed means that you are not using the correct HTTP Method with that endpoint. For this specific case I'd say that the endpoints you are consuming do not accept the POST method.

Is 405 a backend error?

The 405 Method Not Allowed error message is a client error, which indicates that something on the client-side of things is the issue. An HTTP 405 Error indicates that a web browser has requested access to one of your pages, and your web server has recognized the request.


2 Answers

Verify that the Google Code URL has the HTTPS protocol and if you are using Subclipse, change to the svnkit library.

like image 154
Xorsat Avatar answered Sep 20 '22 23:09

Xorsat


I was able to solve this issue by doing what Xorsat said, i.e. check if the Google Code URL is using HTTPS. However, I did not have to change anything regarding the svnkit library; I'm using the default settings of Subclipse, where I installed both Subclipse and the SVNKit plugins in Eclipse.

How do I check if I'm using HTTPS?

  1. Right click the project
  2. Go to PropertiesSubversion

Your URL and Repository Root should be using https.

If you're not using https, you must import the project from Google Code again. How?

  1. In Eclipse 4.2 (Juno), menu FileImport...
  2. SVN → Checkout Projects from SVN, press Next
  3. Check Create a new repository location, press Next
  4. In the URL field, copy-paste the URL from Google Code; make sure it's using https.
  5. Select the trunk directory, press Next >
  6. Unless you're sure what you're doing, keep to the default settings, press Next >
  7. Press Finish.

You should now be able to TeamCommit... your project! Take note, it'll ask you for your username and googlecode.com password (generated in Google Code Project -> Source).

I hope this helps!

like image 26
masarapmabuhay Avatar answered Sep 20 '22 23:09

masarapmabuhay