Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

422s when trying to create audio_events #239

Closed
atruskie opened this issue Oct 14, 2015 · 4 comments
Closed

422s when trying to create audio_events #239

atruskie opened this issue Oct 14, 2015 · 4 comments

Comments

@atruskie
Copy link
Member

Prevents annotations from being created. Happens in some segments only.

www.ecosounds.org-1444706149806.txt

@atruskie
Copy link
Member Author

Remotely repro'd for recording id 331930, start 4620, end 4650

@atruskie
Copy link
Member Author

I tried reproing this - no such luck 😞

I'm stumped

@atruskie
Copy link
Member Author

I still can't repro this bug. However I've had some success trawling through the web server's logs.

/mnt/tmp_production/rails/log$ cat rails.production.log | grep "Completed 422 Unprocessable Entity" -B 20 -A 2

2015-10-14T03:13:12.767+0000 [DEBUG--026933] Incoming Headers:
  Origin: https://www.ecosounds.org
  Access-Control-Request-Method:
  Access-Control-Request-Headers:
2015-10-14T03:13:12.768+0000 [ INFO--026933] Started POST "/audio_recordings/331938/audio_events" for 203.101.226.8 at 2015-10-14 03:13:12 +0000
2015-10-14T03:13:12.771+0000 [DEBUG--026933] Value for params[:taggings] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information. 2015-10-14T03:13:12.773+0000 [ INFO--026933] Processing by AudioEventsController#create as JSON
2015-10-14T03:13:12.773+0000 [ INFO--026933]   Parameters: {"taggings"=>nil, "audio_recording_id"=>"331938", "created_at"=>{}, "end_time_seconds"=>28.699863946, "high_frequency_hertz"=>1291.992188, "is_reference"=>false, "low_frequency_hertz"=>-3359.179687, "start_time_seconds"=>18.169614512, "updated_at"=>{}, "id"=>nil, "audio_event"=>{"id"=>nil, "audio_recording_id"=>"331938", "start_time_seconds"=>18.169614512, "end_time_seconds"=>28.699863946, "low_frequency_hertz"=>-3359.179687, "high_frequency_hertz"=>1291.992188, "is_reference"=>false, "created_at"=>{}, "updated_at"=>{}}}
2015-10-14T03:13:12.862+0000 [ INFO--026933] Completed 422 Unprocessable Entity in 88ms (Views: 0.4ms | ActiveRecord: 21.5ms)

Low frequency Hz is less than 0!

@atruskie
Copy link
Member Author

Just managed to repro! 😲

When drawing the box, drag upwards! (Turns out I always drag top left to bottom right!)

Dragging bottom up produces a box with a negative low frequency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant