Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Error 400 on pusing gem on local server #105

Open
kasargee opened this Issue · 13 comments

6 participants

@kasargee

I have installed geminabox latest version and ran the config.ru file and started the server.
server is running on http://localhost:9292. When i am hitting http://localhost:9292 in IE, it is updating on command prompt where server is running with 200 code.

But when i try to use command-
C:\MyGems\rica-master>gem inabox ./rica-0.0.1.gem
Pushing rica-0.0.1.gem to http://localhost:9292/...
ERROR: Error (400 received)

I am using "USe automatic configuration script" and HTTP_PROXY variable is set to company provided address.
Please help me with solution.

@kasargee

Please help me in this.

@parmi-on-github

Unset HTTP_PROXY variable when executing "gem inabox ..." command. Hope that helps

@kasargee

This did not helped. I chnaged localhost to IP address of virtual maschine on which i am working.
I am getting message on server- 162.103.156.35 - - [04/Apr/2013 13:14:10] "POST /upload HTTP/1.1" 400 18 0.0313

Or else suggest me any idea for creating shared object repository

@kasargee

Any help? Error on pushing gem on local server.

@cwninja
Owner

Hey, do you have any error output from the server side? The only way it should serve up a 400 error is if the uploaded file is not present (https://github.com/cwninja/geminabox/blob/master/lib/geminabox.rb#L85).

What web server are you hosting the app on?

Alternatively, it could be the client not pushing a file. I can't think of a simple way to test which.

Either way, it's probably a windows issue, and I don't have any windows. If you can get to the bottom of it, pull request it up ;)

@kasargee

I am pushing on local server. Yes i am doing it on windows. Is this gem is not supporting windows?

@leviwilson

@kasargee did you have any luck with this? I'm running into the same issue.

@leviwilson

I did verify that pushing to a Mac server that is hosting geminabox works when the client is Windows. Just not when using windows to host it. I get the 400 on the server-side as well. I even set the ./data directory on the server to allow Everyone to no avail.

@kasargee

No, i did not. I gave up this solution. I am using require_all gem for object repository.

@ghost

Simple solution, don't push .gemspec file to geminabox server. First you must build your gem, and after that you can push .gem file to server without 400 error :)

@machzqcq

So nobody found a solution when windows is hosting geminabox and uploading a gem is resulting in 400 error ?

@leviwilson
@BenNG

I also have the problem on linux debian jessie

Pushing Gemfile to http://0.0.0.0:3000/...
400Cannot process gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.