kraken-io / kraken-ruby Goto Github PK
View Code? Open in Web Editor NEWOfficial Ruby Gem for Kraken API
License: MIT License
Official Ruby Gem for Kraken API
License: MIT License
Hi,
I am uploading the images through the URL method provided by Kraken Ruby Gem. However, at times I get this exception and the upload operation fails.
C:/Ruby21/lib/ruby/2.1.0/net/protocol.rb:158:in rescue in rbuf_fill': Net::ReadTimeout (Net::ReadTimeout) from C:/Ruby21/lib/ruby/2.1.0/net/protocol.rb:152:in
rbuf_fill'
from C:/Ruby21/lib/ruby/2.1.0/net/protocol.rb:134:in readuntil' from C:/Ruby21/lib/ruby/2.1.0/net/protocol.rb:144:in
readline'
from C:/Ruby21/lib/ruby/2.1.0/net/http/response.rb:39:in read_status_line' from C:/Ruby21/lib/ruby/2.1.0/net/http/response.rb:28:in
read_new'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:1408:in block in transport_request' from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:1405:in
catch'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:1405:in transport_request' from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:1378:in
request'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:1371:in block in request' from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:853:in
start'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:1369:in request' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/httparty-0.13.7/lib/httparty/request.rb:117:in
perform'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/httparty-0.13.7/lib/httparty.rb:545:in perform_request' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/httparty-0.13.7/lib/httparty.rb:492:in
post'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/kraken-io-0.1.3/lib/kraken-io.rb:39:in block in url' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/kraken-io-0.1.3/lib/kraken-io.rb:67:in
call_kraken'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/kraken-io-0.1.3/lib/kraken-io.rb:38:in `url'
When I use S3 external storage, I must pass AWS_ACCESS_KEY and AWS_SECRET_KEY in params, and send to Kraken API.
But how to know you don't steal my keys?
You can support pre-signed URLs instead. My system will generate a pre-signed URL in 10 minutes expire. So Kraken could upload to my S3 by specifying a path. It's secure more than the current solution.
Please consider this solution.
Your gemspec specifies lib/kraken-io.rb
but not any files within lib/kraken-io/
, so the requires all fail on load.
require 'kraken-io'
# LoadError: cannot load such file -- rest-client
You might want to add some basic tests - Travis CI would catch this pretty quick
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.