{"action":"created","issue":{"url":"https://api.github.com/repos/inaturalist/INaturalistIOS/issues/168","repository_url":"https://api.github.com/repos/inaturalist/INaturalistIOS","labels_url":"https://api.github.com/repos/inaturalist/INaturalistIOS/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/inaturalist/INaturalistIOS/issues/168/comments","events_url":"https://api.github.com/repos/inaturalist/INaturalistIOS/issues/168/events","html_url":"https://github.com/inaturalist/INaturalistIOS/issues/168","id":76148695,"number":168,"title":"Duplicate requests to ObservationFieldValue::create","user":{"login":"pleary","id":48566,"avatar_url":"https://avatars2.githubusercontent.com/u/48566?v=3","gravatar_id":"","url":"https://api.github.com/users/pleary","html_url":"https://github.com/pleary","followers_url":"https://api.github.com/users/pleary/followers","following_url":"https://api.github.com/users/pleary/following{/other_user}","gists_url":"https://api.github.com/users/pleary/gists{/gist_id}","starred_url":"https://api.github.com/users/pleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleary/subscriptions","organizations_url":"https://api.github.com/users/pleary/orgs","repos_url":"https://api.github.com/users/pleary/repos","events_url":"https://api.github.com/users/pleary/events{/privacy}","received_events_url":"https://api.github.com/users/pleary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-05-13T22:35:50Z","updated_at":"2017-05-02T21:42:22Z","closed_at":null,"body":"Looking through Kibana I noticed many cases of repeated requests to the same action, by the same user all appearing to use the iOS app. Here are some selected headers from one of these duplicate requests:\n\n`{\n  \"end_time\": \"2015-05-13T12:40:03.856-07:00\",\n  \"controller\": \"ObservationFieldValuesController\",\n  \"action\": \"create\",\n  \"params\": {\n    \"observation_field_value\": \"{\\\"observation_field_id\\\"=>\\\"2646\\\", \\\"observation_id\\\"=>\\\"1468181\\\", \\\"value\\\"=>\\\"shoreline\\\"}\"\n  },\n  \"format\": \"json\",\n  \"method\": \"POST\",\n  \"path\": \"/observation_field_values\",\n  \"status\": 422,\n  \"HTTP_USER_AGENT\": \"iNaturalist/2.5.4 (iOS iPhone OS 8.1.2 iPhone)\",\n  \"X_MOBILE_DEVICE\": \"iPhone\",\n  \"ssl\": \"true\",\n  \"start_time\": \"2015-05-13T12:40:03.835-07:00\",\n  \"controller_action\": \"ObservationFieldValuesController::create\"\n}`\n\nAlex noticed the status 422, and I haven't yet tried to duplicate this request to see what the response is. Here's a quick chart of how many times individual users are hitting ObservationFieldValuesController::create\n\n![screen shot 2015-05-13 at 6 34 20 pm](https://cloud.githubusercontent.com/assets/48566/7622575/dbb56f6c-f99e-11e4-84bf-9339a4d017e2.png)\n"},"comment":{"url":"https://api.github.com/repos/inaturalist/INaturalistIOS/issues/comments/298770095","html_url":"https://github.com/inaturalist/INaturalistIOS/issues/168#issuecomment-298770095","issue_url":"https://api.github.com/repos/inaturalist/INaturalistIOS/issues/168","id":298770095,"user":{"login":"alexshepard","id":515947,"avatar_url":"https://avatars2.githubusercontent.com/u/515947?v=3","gravatar_id":"","url":"https://api.github.com/users/alexshepard","html_url":"https://github.com/alexshepard","followers_url":"https://api.github.com/users/alexshepard/followers","following_url":"https://api.github.com/users/alexshepard/following{/other_user}","gists_url":"https://api.github.com/users/alexshepard/gists{/gist_id}","starred_url":"https://api.github.com/users/alexshepard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexshepard/subscriptions","organizations_url":"https://api.github.com/users/alexshepard/orgs","repos_url":"https://api.github.com/users/alexshepard/repos","events_url":"https://api.github.com/users/alexshepard/events{/privacy}","received_events_url":"https://api.github.com/users/alexshepard/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T21:42:22Z","updated_at":"2017-05-02T21:42:22Z","body":"@pleary is there any evidence that this is still happening?"}}
{"actor":{"display_login":"alexshepard"}}