{"action":"created","issue":{"url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/338","repository_url":"https://api.github.com/repos/publiclab/spectral-workbench","labels_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/338/comments","events_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/338/events","html_url":"https://github.com/publiclab/spectral-workbench/issues/338","id":134702402,"number":338,"title":"Calibrate operation fails on Spectrum 71686","user":{"login":"jywarren","id":24359,"avatar_url":"https://avatars.githubusercontent.com/u/24359?v=3","gravatar_id":"","url":"https://api.github.com/users/jywarren","html_url":"https://github.com/jywarren","followers_url":"https://api.github.com/users/jywarren/followers","following_url":"https://api.github.com/users/jywarren/following{/other_user}","gists_url":"https://api.github.com/users/jywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/jywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jywarren/subscriptions","organizations_url":"https://api.github.com/users/jywarren/orgs","repos_url":"https://api.github.com/users/jywarren/repos","events_url":"https://api.github.com/users/jywarren/events{/privacy}","received_events_url":"https://api.github.com/users/jywarren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-18T21:30:53Z","updated_at":"2016-02-18T21:33:15Z","closed_at":null,"body":"on https://spectralworkbench.org/spectrums/71686\r\n\r\nThe operation shows \"could not be saved\": https://publiclab.org/notes/mokeymark/02-17-2016/question-how-do-i-save-the-calibration-data#c13643\r\n\r\nand a call to `/tags` returns a 500 error, with:\r\n\r\n````\r\nMultiJson::ParseError (399: unexpected token at '{\"average\":7.6499999999999995,\"r\":7.6499999999999995,\"g\":5.1000000000000005,\"b\":1'):\r\n  app/models/spectrum.rb:513:in `latest_json_data'\r\n  app/models/spectrum.rb:522:in `generate_hashed_values'\r\n  app/models/spectrum.rb:502:in `generate_processed_spectrum'\r\n  app/models/snapshot.rb:52:in `generate_processed_spectrum'\r\n  app/models/spectrum.rb:319:in `add_snapshot'\r\n  app/models/tag.rb:173:in `create_snapshot'\r\n  app/controllers/tags_controller.rb:38:in `create'\r\n````\r\n\r\nI'm wondering if this is an issue of the blob being too long; could perhaps solve this by resolving #335."},"comment":{"url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/comments/185931655","html_url":"https://github.com/publiclab/spectral-workbench/issues/338#issuecomment-185931655","issue_url":"https://api.github.com/repos/publiclab/spectral-workbench/issues/338","id":185931655,"user":{"login":"jywarren","id":24359,"avatar_url":"https://avatars.githubusercontent.com/u/24359?v=3","gravatar_id":"","url":"https://api.github.com/users/jywarren","html_url":"https://github.com/jywarren","followers_url":"https://api.github.com/users/jywarren/followers","following_url":"https://api.github.com/users/jywarren/following{/other_user}","gists_url":"https://api.github.com/users/jywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/jywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jywarren/subscriptions","organizations_url":"https://api.github.com/users/jywarren/orgs","repos_url":"https://api.github.com/users/jywarren/repos","events_url":"https://api.github.com/users/jywarren/events{/privacy}","received_events_url":"https://api.github.com/users/jywarren/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T21:33:15Z","updated_at":"2016-02-18T21:33:15Z","body":"I'm going to guess that overall length is the reason: `spectrum.average.length` is 951, so, yikes, that's a lot of data. "}}