hashicorp / hashicorp/vagrant_cloud
Using sample code does not upload the box
Open
- Dominant language
- Ruby
- Stars
- 16
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
When testing the api i followed the sample code:
```
# Upload box asset
uri = URI.parse(upload_url[:upload_path])
request = Net::HTTP::Post.new(uri)
box = File.open(BOX_PATH, "rb")
request.set_form([["file", box]], "multipart/form-data")
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme.eql?("https")) do |http|
http.request(request)
end
```
On the response i always get Http Service unavailable.
i'm i missing something ?
My ruby version:
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-darwin19]
vagrant_cloud (3.0.5)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.