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

HTTP Error 411: Length Required #31

Open
trebolcinco opened this issue Aug 19, 2014 · 3 comments
Open

HTTP Error 411: Length Required #31

trebolcinco opened this issue Aug 19, 2014 · 3 comments

Comments

@trebolcinco
Copy link

Using 2.0.0. Keep getting 411 Length Required. See in the code changes for 2.0.0 that data.size is being passed. Not sure what is going wrong.


require 'artifactory'
include Artifactory::Resource
describe 'test' do

  Artifactory.configure do |config|
    config.endpoint = 'http://artifactory.somewhere/artifactory/'
    config.username = 'admin'
    config.password = 'blahblah'
  end
  it 'should work' do
      artifact = Artifact.new(local_path: '/Users/somebody/Projects/UDEV/apps/app/Cheffile')
      artifact.upload('soco-local', '/app/1-test')
  end
end
@sethvargo
Copy link
Contributor

What version of artifactory? What type of file are you trying to upload?

@trebolcinco
Copy link
Author

Artifactory Pro Power Pack 3.2.1.1 (rev. 30094)

the file is a Cheffile (text)

@sethvargo
Copy link
Contributor

We are regularly uploading files and not experiencing this error, but they are packages, not text. Can you try uploading a binary file?

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

2 participants