watermarkchurch / wcc-contentful

An alternative to Contentful's contentful.rb ruby client, contentful_model, and contentful_rails gems all in one.
MIT License
2 stars 1 forks source link

Handle KeyErrors with Redis cache using lazy_sync strategy #79

Closed gburgett closed 5 years ago

gburgett commented 6 years ago
2018-09-25T20:08:14.393926+00:00 app[web.1]: [ActiveJob] [WCC::Contentful::DelayedSyncJob] [9ad827f7-8367-4502-a736-3afbe374699b] Error performing WCC::Contentful::DelayedSyncJob (Job ID: 9ad827f7-8367-4502-a736-3afbe374699b) from Async(default) in 1.73ms: KeyError (key not found: "token"):
2018-09-25T20:08:14.393929+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bundler/gems/wcc-contentful-c52c9061766f/app/jobs/wcc/contentful/delayed_sync_job.rb:36:in `fetch'
2018-09-25T20:08:14.393930+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bundler/gems/wcc-contentful-c52c9061766f/app/jobs/wcc/contentful/delayed_sync_job.rb:36:in `block in sync!'