Code Monkey home page Code Monkey logo

gdata-ruby-util's People

Contributors

jeffposnick avatar tjohns avatar

Watchers

 avatar  avatar

gdata-ruby-util's Issues

Request error 400 Invalid request URI when creating document in folder

What steps will reproduce the problem?
1. Get list of folders =
@client.get('http://docs.google.com/feeds/documents/private/full/-/folder')
2. inside loop create folder uri = entry.elements['id'].text + '/contents'
3. @client.post(uri,newdoc)

What is the expected output? What do you see instead?
Expect document to be created in folder, instead, receive "Invalid request URI"


What version of the product are you using? On what operating system?
gdata-1.1.0, ruby 1.8, 

Please provide any additional information below.

I am able to create the document in the root:

uri = 'http://docs.google.com/feeds/documents/private/full'
@client.post(uri,newdoc)

Original issue reported on code.google.com by [email protected] on 27 Oct 2009 at 7:01

test/tc_gdata_client_calendar fails

What steps will reproduce the problem?
1. Create a test_config.yml: the username and password should be for a
*GOOGLE APPS* user, e.g., [email protected] (NOT [email protected])
2. ruby test/tc_gdata_client_calendar.rb


What is the expected output? PASS What do you see instead?

FAIL:

  1) Failure:
test_get_all_calendars(TC_GData_Client_Calendar)
[test/tc_gdata_client_calendar.rb:29]:
Must not be a redirect.
<200> expected but was
<302>.

What version of the product are you using? On what operating system?

gdata-ruby-util: 1.1.1
Ruby 1.8.6 (fails on hoang's version for 1.9.1, too --
http://code.google.com/u/hoanga/)
OS/X 10.5


Please provide any additional information below.

I don't understand the redirect strategy in general. I could patch the
library to follow the redirect, but am not sure if this is the best strategy.

Original issue reported on code.google.com by [email protected] on 29 Apr 2010 at 2:34

Uploading large size file (60 MB) and giving me error.

What steps will reproduce the problem?
1. tried to upload 60 MB file.

What is the expected output? What do you see instead?
>> response = yt.post_file(feed, test_movie, mime_type, entry).to_xml
Net::ProtocolError: execution expired
    from /usr/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill'
    from /usr/lib/ruby/1.8/net/protocol.rb:140:in `rbuf_fill'
    from /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
    from /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'
    from /usr/lib/ruby/1.8/net/http.rb:2020:in `read_status_line'
    from /usr/lib/ruby/1.8/net/http.rb:2009:in `read_new'
    from /usr/lib/ruby/1.8/net/http.rb:1050:in `request'
    from /usr/lib/ruby/1.8/net/http.rb:1037:in `request'
    from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
    from /usr/lib/ruby/1.8/net/http.rb:1035:in `request'
    from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/http/default_service.rb:69:in
`make_request'
    from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/client/base.rb:81:in
`make_request'
    from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/client/base.rb:61:in
`make_file_request'
    from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/client/base.rb:123:in
`post_file'
    from (irb):44

What version of the product are you using? On what operating system?
ruby 1.8.7
Ubuntu 9.10
gdata 1.1.1

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 17 Dec 2009 at 6:46

Raising BadRequestError will itself cause error ...

When responding to an error code 400 (line 88-89 in
./gdata-1.1.0/lib/gdata/client.rb) the code will throw an error. This is
because code is passing response.body when it should be passing response

Proposed fix:

Original:

raise BadRequestError, response.body

Proposed:

raise BadRequestError.new(response)

Cheers,

Vince


Original issue reported on code.google.com by [email protected] on 13 Jul 2009 at 10:44

SSL certificate verification is disabled

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

http://code.google.com/p/gdata-ruby-util/source/browse/lib/gdata/http/default_se
rvice.rb#33

Original issue reported on code.google.com by [email protected] on 12 Nov 2010 at 9:44

request error 400: No file found in upload request.

What steps will reproduce the problem?
1.create authenticated client
[email protected]_file(url, path, mime_type, entry)
3.No file found in upload request.

What is the expected output? What do you see instead?
I would like to be able to upload a video to youtube

What version of the product are you using? On what operating system?
MacBook 10.5, gdata version 1.1.0

Please provide any additional information below.

The example code I'm using is attached, it's very short and straight forward.

Original issue reported on code.google.com by [email protected] on 8 Nov 2009 at 3:08

Attachments:

Does not respond to conditional GET request 304

What steps will reproduce the problem?
1. A request cannot be made in the current state with an HTTP header that 
includes ['If-None-Match']. 

What is the expected output? What do you see instead?

It is expected that 304 is returned during a conditional GET.


What version of the product are you using? On what operating system?
gdata-ruby-util-1.1.2

OS 10.7
Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 21 Jul 2011 at 1:40

uninitialized constant Cal::GData

What steps will reproduce the problem?
1. installed the gdata gem
2. tried out the example code in controller ("cal")
3. throws the following error:

NameError in CalController#index

uninitialized constant Cal::GData

/Users/fabrik42/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/depend
encies.rb:105:in
`const_missing'
/Users/fabrik42/Dev/Rails/testGdata/app/models/cal.rb:5:in `fetch_gdata'
/Users/fabrik42/Dev/Rails/testGdata/app/controllers/cal_controller.rb:5:in
`index'


using RoR 2.3.2 with Ruby 1.8.6 p114 on OS X Leopard


Original issue reported on code.google.com by [email protected] on 14 Apr 2009 at 2:49

request error 400: No file found in upload request. gdata version 1.1.1

What steps will reproduce the problem?
1.create authenticated client
[email protected]_file(url, path, mime_type, entry)
3.No file found in upload request.


What is the expected output? What do you see instead?
I would like to be able to upload a video to youtube


What version of the product are you using? On what operating system?
Windows XP SP3, gdata version 1.1.1

Please provide any additional information below.
in "class MimeBody" replace "wrap_entry" with this code to fix it.

"def wrap_entry(entry, file_mime_type)
        wrapped_entry = "--#{@boundary}\r\n"
        wrapped_entry += "Content-Type: application/atom+xml;
charset=UTF-8\r\n\r\n"
        wrapped_entry += entry
        wrapped_entry += "\r\n--#{@boundary}\r\n"
        wrapped_entry += "Content-Type: #{file_mime_type}\r\n"
        wrapped_entry += "Content-Transfer-Encoding: binary\r\n\r\n"        
        return MimeBodyString.new(wrapped_entry)
      end"

Original issue reported on code.google.com by [email protected] on 8 Dec 2009 at 3:34

Calendars still experience 302 errors

require 'gdata'

>> client = GData::Client::Calendar.new
>> client.clientlogin( username, password )
>> client.get( "http://www.google.com/calendar/feeds/default/allcalendars/full")

#=>  

#<GData::HTTP::Response:0x25cdf80 @status_code=302, @headers={"cache-
control"=>"private, max-age=0", "connection"=>"close", "expires"=>"Sun, 03 May 
2009 
18:53:53 GMT", "x-content-type-options"=>"nosniff", "date"=>"Sun, 03 May 2009 
18:53:53 
GMT", "content-type"=>"text/html; charset=UTF-8", "server"=>"GFE/2.0", "content-
length"=>"240", 
"location"=>"https://www.google.com/calendar/feeds/default/allcalendars"}, 
body"<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY 
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has 
moved <A 
HREF="https://www.google.com/calendar/feeds/default/allcalendars">here</A>.\n</B
ODY>\n
</HTML>\n"

I am using the latest gem. 

Original issue reported on code.google.com by [email protected] on 3 May 2009 at 6:58

Errors are not programatically very usable

The attached patch makes the errors raised by gdata more useful.

It provides a base gdata error class that can be used to rescue all errors that 
come from gdata.

It captures the Net::HTTPResponse object when creating errors based on HTTP 
responses for 
better usability so I can distinguish between a 401 Unathourized and 403 
Forbidden and provide 
my users with better behavior and messaging.

Original issue reported on code.google.com by [email protected] on 22 Apr 2009 at 9:39

Attachments:

Handle Google Calendar 302 API responses gracefully

Calendar Data API

What steps will reproduce the problem?

1. client = GData::Client::Calendar.new
2.
client.get("http://www.google.com/calendar/feeds/default/allcalendars/full").to_
xml


I expect to see some xml describing my calendars. However, the google
Calendar API suggests that i may be redirected (302) and the redirect
response will include a new url with a gsessionid parameter. 

Unfortunately, gdata/client/base.rb make_request method will raise an
exception when 302 is returned. 

I was able to move around this by having the method return the response in
stead of raising an exception. I think that this should be the default
behavior. The programmer should be able to handle HTTP responses. Not the
Library. 

Original issue reported on code.google.com by [email protected] on 5 Mar 2009 at 10:36

Unicode support issues with ruby 1.9

What steps will reproduce the problem?
1. Include confi.gem "gdata", :version => '1.1.1' in environment.rb
2. Start the rails console. The console doesn't start.

What version of the product are you using? On what operating system?
I am using ruby 1.9, rails 2.3.3. 

From what I read on the web, it looks like the unicode support is built
into ruby 1.9. So commenting out the following lines from gdata.rb seems to
be working for me.

require 'jcode'
$KCODE = 'UTF8'

I don't know if it causes any other issues?

Please provide any additional information below.
The error message:
no such file to load -- jcode
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/courses/RoR/Project/shelves/vendor/gems/gdata-1.1.1/lib/gdata.rb:
21:in
`<top (required)>'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/rails/gem_dependency.rb:208:
in
`load'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`block in load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`each'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:164:in
`process'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:113:in `run'
/Users/Chethan/courses/RoR/Project/shelves/config/environment.rb:9:in `<top
(required)>'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`require'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`block in load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`each'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:20:in
`setup'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb.rb:53:in
`start'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/bin/irb:12:in `<main>'
no such file to load -- jcode
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/courses/RoR/Project/shelves/vendor/gems/gdata-1.1.1/lib/gdata.rb:
21:in
`<top (required)>'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/rails/gem_dependency.rb:208:
in
`load'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`block in load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`each'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:169:in
`process'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:113:in `run'
/Users/Chethan/courses/RoR/Project/shelves/config/environment.rb:9:in `<top
(required)>'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`require'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`block in load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`each'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:20:in
`setup'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb.rb:53:in
`start'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/bin/irb:12:in `<main>'
Missing these required gems:
  gdata  = 1.1.1

You're running:
  ruby 1.9.1.243 at /Users/Chethan/.ruby_versions/ruby-1.9.1-p243/bin/ruby
  rubygems 1.3.5 at /Users/Chethan/.gem/ruby/1.9.1

Original issue reported on code.google.com by [email protected] on 6 Dec 2009 at 7:27

Does not support Ruby 1.9

What steps will reproduce the problem?
1.Write hello world app
2.Run in Ruby 1.9

What is the expected output? What do you see instead?

Below is the error:

~/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.r
b:36:in `require': cannot load such file -- jcode (LoadError)

What version of the product are you using? On what operating system?

Latest gem, Ruby 1.9

Please provide any additional information below.

Root cause is the include of jcode in lib/gdata.rb. This line:

  require 'jcode'

should become:

  require 'jcode' if RUBY_VERSION < '1.9'


Original issue reported on code.google.com by [email protected] on 12 Dec 2012 at 6:25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.