vigetlabs/garb — Issue #110: account.profiles seems to be returning a "invalidRequestUri"
Author: brunogh
Created: 2012-01-05 01:04:42+00:00
State: open

It seems that the following code stopped working on account.profiles call. Not sure if it is a temporary Google issue, but noticed today.

```ruby
def accounts_and_profiles_summarized
begin
ga_profiles = []
session = Garb::Session.new
session.access_token = get_oauth_access_token
accounts = Garb::Management::Account.all(session)
accounts.each do |a|
account = OpenStruct.new(:name => a.name, :profiles => [])
a.profiles.each do |p|
account.profiles << OpenStruct.new(:title => p.title, :ua_id => p.web_property_id)
end
ga_profiles << account
end
ga_profiles
rescue => e
p e
end
end
```

```xml
- GAClient raises error at accounts_and_profiles_summarized:75: "GDatainvalidRequestUriInvalid request URI"
```