Skip to content

Error communicating with Spreedly #8

@ganders

Description

@ganders

I'm getting the following error intermittently when communicating with spreedly. It's a Ubuntu 10.04 box running rails 3.0. I'm getting it in multiple places but the line of code for this particular incident is:

def get_spreedly_plan_by_name(plan_name)
RSpreedly::SubscriptionPlan.all.each do |spreedly_plan|
if spreedly_plan.feature_level == plan_name
return spreedly_plan
end
end
nil
end

Any help is V E R Y appreciated, I'm pretty much at a loss on this one.

crack (0.1.8) lib/crack/xml.rb:86:in to_hash' crack (0.1.8) lib/crack/xml.rb:108:inmerge!'
crack (0.1.8) lib/crack/xml.rb:108:in block in to_hash' crack (0.1.8) lib/crack/xml.rb:106:ineach'
crack (0.1.8) lib/crack/xml.rb:106:in to_hash' crack (0.1.8) lib/crack/xml.rb:99:inblock (2 levels) in to_hash'
crack (0.1.8) lib/crack/xml.rb:99:in map' crack (0.1.8) lib/crack/xml.rb:99:inblock in to_hash'
crack (0.1.8) lib/crack/xml.rb:95:in each' crack (0.1.8) lib/crack/xml.rb:95:into_hash'
crack (0.1.8) lib/crack/xml.rb:211:in parse' httparty (0.7.8) lib/httparty/parser.rb:112:inxml'
httparty (0.7.8) lib/httparty/parser.rb:136:in parse_supported_format' httparty (0.7.8) lib/httparty/parser.rb:103:inparse'
httparty (0.7.8) lib/httparty/parser.rb:66:in call' httparty (0.7.8) lib/httparty/request.rb:217:inparse_response'
httparty (0.7.8) lib/httparty/request.rb:189:in handle_response' httparty (0.7.8) lib/httparty/request.rb:71:inperform'
httparty (0.7.8) lib/httparty.rb:390:in perform_request' httparty (0.7.8) lib/httparty.rb:342:inget'
rspreedly (0.1.11) lib/rspreedly/base.rb:24:in do_request' rspreedly (0.1.11) lib/rspreedly/base.rb:19:inapi_request'
rspreedly (0.1.11) lib/rspreedly/subscription_plan.rb:35:in all' app/models/spreedly.rb:96:inget_spreedly_plan_by_name'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions