{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/jekyll-algolia/issues/38","repository_url":"https://api.github.com/repos/algolia/jekyll-algolia","labels_url":"https://api.github.com/repos/algolia/jekyll-algolia/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/algolia/jekyll-algolia/issues/38/comments","events_url":"https://api.github.com/repos/algolia/jekyll-algolia/issues/38/events","html_url":"https://github.com/algolia/jekyll-algolia/issues/38","id":293979650,"number":38,"title":"Unable to batch push data on the index","user":{"login":"nfrankel","id":752258,"avatar_url":"https://avatars3.githubusercontent.com/u/752258?v=4","gravatar_id":"","url":"https://api.github.com/users/nfrankel","html_url":"https://github.com/nfrankel","followers_url":"https://api.github.com/users/nfrankel/followers","following_url":"https://api.github.com/users/nfrankel/following{/other_user}","gists_url":"https://api.github.com/users/nfrankel/gists{/gist_id}","starred_url":"https://api.github.com/users/nfrankel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfrankel/subscriptions","organizations_url":"https://api.github.com/users/nfrankel/orgs","repos_url":"https://api.github.com/users/nfrankel/repos","events_url":"https://api.github.com/users/nfrankel/events{/privacy}","received_events_url":"https://api.github.com/users/nfrankel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-02-02T18:23:29Z","updated_at":"2018-02-14T16:05:07Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nJust found out about Algolia and its Jekyll plugin.\r\n\r\nHowever, when I run the command:\r\n\r\n```\r\nALGOLIA_API_KEY='secret' bundle exec jekyll algolia --trace\r\n```\r\n\r\nI stumble upon the following issue:\r\n\r\n```\r\nExtracting records...                                                            \r\nUpdating records in index blog.frankel.ch...                                     \r\nRecords to delete: 33                                                            \r\nRecords to add:    57                                                            \r\nbundler: failed to load command: jekyll (/Users/i303869/.rbenv/versions/2.4.2/bin/jekyll)\r\nNoMethodError: undefined method `[]' for nil:NilClass\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/error_handler.rb:198:in `record_too_big?'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/error_handler.rb:58:in `block in identify'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/error_handler.rb:57:in `each'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/error_handler.rb:57:in `identify'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/error_handler.rb:23:in `stop'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/indexer.rb:154:in `rescue in block in update_records'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/indexer.rb:151:in `block in update_records'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/indexer.rb:150:in `each'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/indexer.rb:150:in `each_slice'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/indexer.rb:150:in `update_records'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/algolia/indexer.rb:192:in `run'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll-algolia.rb:119:in `write'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-3.7.2/lib/jekyll/site.rb:75:in `process'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll-algolia.rb:57:in `run'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-algolia-1.1.0/lib/jekyll/commands/algolia.rb:42:in `block (2 levels) in init_with_program'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'\r\n  /Users/i303869/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-3.7.2/exe/jekyll:15:in `<top (required)>'\r\n  /Users/i303869/.rbenv/versions/2.4.2/bin/jekyll:23:in `load'\r\n  /Users/i303869/.rbenv/versions/2.4.2/bin/jekyll:23:in `<top (required)>'\r\n```\r\n\r\nInterestingly enough, if I remove all the posts (but not the pages), or use the example repo, it works.\r\n\r\nDo you have any way I could debug further? Any hint/help appreciated.\r\n\r\nMy repo is hosted on a private Gitlab repo, but should the need be, I could give you access rights."},"comment":{"url":"https://api.github.com/repos/algolia/jekyll-algolia/issues/comments/365654669","html_url":"https://github.com/algolia/jekyll-algolia/issues/38#issuecomment-365654669","issue_url":"https://api.github.com/repos/algolia/jekyll-algolia/issues/38","id":365654669,"user":{"login":"nfrankel","id":752258,"avatar_url":"https://avatars3.githubusercontent.com/u/752258?v=4","gravatar_id":"","url":"https://api.github.com/users/nfrankel","html_url":"https://github.com/nfrankel","followers_url":"https://api.github.com/users/nfrankel/followers","following_url":"https://api.github.com/users/nfrankel/following{/other_user}","gists_url":"https://api.github.com/users/nfrankel/gists{/gist_id}","starred_url":"https://api.github.com/users/nfrankel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfrankel/subscriptions","organizations_url":"https://api.github.com/users/nfrankel/orgs","repos_url":"https://api.github.com/users/nfrankel/repos","events_url":"https://api.github.com/users/nfrankel/events{/privacy}","received_events_url":"https://api.github.com/users/nfrankel/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T16:05:07Z","updated_at":"2018-02-14T16:05:07Z","author_association":"NONE","body":"As far as I understand, a post will get spit into different records, but each of those records will get the same excerpt data. Am I right?"}}
{"actor":{"display_login":"nfrankel"}}