The server sent an unexpected return value (405 Method Not Allowed) in response to an OPTIONS request

I have a project in Google Code and I am using SVN.

Everything worked perfectly with this project in Eclipse.

But today I created a new project in Google Code. And when you try to add my project from Eclipse to the Google repository that I created, it gives an error.

Error in the Eclipse console:

svn: the server sent an unexpected return value (405 Method not allowed) in response to an OPTIONS request for https://code.google.com/ ............ '

Eclipse shows this on commit:

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' 
+6
source share
6 answers

Make sure the Google Code URL has the HTTPS protocol , and if you are using Subclipse, go to the svnkit library.

+5
source

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

How to check if I use HTTPS ?

  • Right click project
  • Go to the menu "Properties" โ†’ "Subversion"

The URL and root repository must use https .

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

  • In Eclipse 4.2 (Juno), the menu File โ†’ Import ...
  • SVN โ†’ Draft orders from SVN, click Next
  • Check Create a new repository location, click Next
  • In the URL field, copy the URL from the Google code; make sure it uses https .
  • Select a trunk directory, click Next>
  • If you are not sure what you are doing, save the default settings, click Next>
  • Click Finish .

You should now be able to Team โ†’ Commit ... your project! Please note: it will ask you for the googlecode.com username and password (generated in Project Code Project โ†’ Source).

Hope this helps!

+4
source

Here is the solution: http://www.svnforum.org/threads/35661-Problems-committing-(405-Method-not-allowed)

I tried to drag and drop my file using the repository browser instead of importing the file, and this worked for me. By the way, I used TortoiseSVN .

+1
source

For those who navigate to this page. I got this error and it turned out that the username for the repository is case sensitive in Eclipse. By typing the exact correct username, I solved the problem. Hope this helps someone else.

+1
source

For me, NEVER previous worked and will not work. The reason is that Google has deprecated Google Code and will terminate this service.

He marked all projects as "Read ONLY." So now you see why no commits can be made as a repository, are READ and archived. Go to Google Code and view your repository / project and it will display a message below:

READ-ONLY: This project has been archived. See this post for more information.

+1
source

I ran into this problem only to find that my local SVN server of my organization was unavailable. May be helpful to someone.

0
source

Source: https://habr.com/ru/post/902137/


All Articles