我得到了一些正在被解析的JSON,在解析了大量的东西后,它会像这样随机崩溃:
"headline": "Social Worker/Care Coordinator at St. Luke's-Roosevelt Hospital",
"id
from /Library/Ruby/Gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `load'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `load'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `load'
from /Users/alexgenadinik/projects/cmply/cmply-app/lib/app/social/linkedin/linked_in/mash.rb:9:in `from_json'
from /Users/alexgenadinik/projects/cmply/cmply-app/lib/app/social/linkedin/linked_in/api/query_methods.rb:106:in `simple_query'
from /Users/alexgenadinik/projects/cmply/cmply-app/lib/app/social/linkedin/linked_in/api/query_methods.rb:60:in `member_updates'
from /Users/alexgenadinik/projects/cmply/cmply-app/lib/app/monitoring/parsers/linked_in_parser.rb:36:in `fetch!'
from (irb):20
任何想法如何防止它或为什么会发生?
错误消息指向此行:
Mash.from_json(get(path, headers))
这是错误信息所涉及的第106行。
这是在put object_name
之后发生的