We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi team,
We have some 500 http errors on our servers from the StatsController.
StatsController
Get 200 or 404 from the server response.
200
404
Source:
forest-rails/app/controllers/forest_liana/stats_controller.rb
Lines 30 to 34 in a36791d
Server render 500 in OperatorDateIntervalParser#get_date_filter_for_previous_interval
500
OperatorDateIntervalParser#get_date_filter_for_previous_interval
NoMethodError: undefined method `[]' for nil:NilClass # /usr/local/bundle/gems/forest_liana-5.4.3/app/services/forest_liana/operator_date_interval_parser.rb:138:in `get_date_filter_for_previous_interval' # /usr/local/bundle/gems/forest_liana-5.4.3/app/services/forest_liana/filters_parser.rb:241:in `parse_previous_interval_condition' # /usr/local/bundle/gems/forest_liana-5.4.3/app/services/forest_liana/filters_parser.rb:222:in `parse_aggregation_on_previous_interval' # /usr/local/bundle/gems/forest_liana-5.4.3/app/services/forest_liana/filters_parser.rb:214:in `apply_filters_on_previous_interval' # /usr/local/bundle/gems/forest_liana-5.4.3/app/services/forest_liana/value_stat_getter.rb:15:in `perform' # /usr/local/bundle/gems/forest_liana-5.4.3/app/controllers/forest_liana/stats_controller.rb:29:in `get'
Reproduce in test with: HTTP POST /forest/stats/Api__OrganizationsView Body:
POST /forest/stats/Api__OrganizationsView
{ collection: 'CollectionName', aggregate: 'Count', type: 'Value', filters: { field: "field_name", operator: "before_x_hours_ago", value: "240"}.to_json }
5.4.3
6.0.0
postgres
10
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi team,
We have some 500 http errors on our servers from the
StatsController
.Expected behavior
Get
200
or404
from the server response.Source:
forest-rails/app/controllers/forest_liana/stats_controller.rb
Lines 30 to 34 in a36791d
Actual behavior
Server render
500
inOperatorDateIntervalParser#get_date_filter_for_previous_interval
Failure Logs
Context
Reproduce in test with:
HTTP
POST /forest/stats/Api__OrganizationsView
Body:
5.4.3
6.0.0
postgres
10
The text was updated successfully, but these errors were encountered: