-
Task
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
From mhockelb: I caught the error (below) that I've been seeing when I try to view an application's details (click link in application listing) after adding a limit to a backend API that's in the application's application plan. When I remove the limit, the error goes away. I tested setting the limits at the API product level, and they don't cause the exception. Not sure if there is bad data lingering around or if it's just the sequence of events. Using 3scale 2.7 (installed via operator) on OCP 4.2.
[f3681e1a-37b3-440a-b3cc-fe52e80159f2] [3scale-admin.demo.apps.cluster-tampa-df46.tampa-df46.example.opentlc.com] [47.196.149.202] Rendered api/applications/show.html.slim within layouts/provider (11.5ms) [f3681e1a-37b3-440a-b3cc-fe52e80159f2] [3scale-admin.demo.apps.cluster-tampa-df46.tampa-df46.example.opentlc.com] [47.196.149.202] Completed 500 Internal Server Error in 77ms (ActiveRecord: 19.2ms) Exception -- [f3681e1a-37b3-440a-b3cc-fe52e80159f2] [3scale-admin.demo.apps.cluster-tampa-df46.tampa-df46.example.opentlc.com] [47.196.149.202] {:exception=>{:class=>ActionView::Template::Error, :message=>"UtilizationRecord#friendly_name delegated to metric.friendly_name, but metric is nil: #<UtilizationRecord:0x0000000010da3968 @persisted=false, @dirty=true, @period=\"day\", @max_value=1000, @current_value=251, @metric=nil, @percentage=25.1>", :backtrace=>["/opt/system/app/models/utilization_record.rb:7:in rescue in friendly_name'", "/opt/system/app/models/utilization_record.rb:7:in friendly_name'", "/opt/system/app/views/buyers/applications/_utilization.html.erb:23:in block in _app_views_buyers_applications__utilization_html_erb___4479598199799925327_108858080'", "/opt/system/app/views/buyers/applications/_utilization.html.erb:21:in each'"]}, :parameters=>{}} [f3681e1a-37b3-440a-b3cc-fe52e80159f2] [3scale-admin.demo.apps.cluster-tampa-df46.tampa-df46.example.opentlc.com] [47.196.149.202] ActionView::Template::Error (UtilizationRecord#friendly_name delegated to metric.friendly_name, but metric is nil: #<UtilizationRecord:0x0000000010da3968 @persisted=false, @dirty=true, @period="day", @max_value=1000, @current_value=251, @metric=nil, @percentage=25.1>): 20: <tr/> 21: <% utilization.each do |item| %> 22: <tr> 23: <td class="u-word-break-all"><b class="u-word-break-word"><%=item.friendly_name %></b> (<%=item.system_name%>)</td> 24: <td>per <b><%=item.period%></b></td> 25: <% 26: app/models/utilization_record.rb:7:in `rescue in friendly_name' app/models/utilization_record.rb:7:in `friendly_name' app/views/buyers/applications/_utilization.html.erb:23:in `block in _app_views_buyers_applications__utilization_html_erb___4479598199799925327_108858080' app/views/buyers/applications/_utilization.html.erb:21:in `each' app/views/buyers/applications/_utilization.html.erb:21:in `_app_views_buyers_applications__utilization_html_erb___4479598199799925327_108858080' app/views/api/applications/show.html.slim:63:in `_app_views_api_applications_show_html_slim___1449569735932887447_110558640' lib/three_scale/middleware/multitenant.rb:116:in `_call' lib/three_scale/middleware/multitenant.rb:111:in `call' lib/action_dispatch/rails5_ssl.rb:86:in `call' 47.196.149.202 - - [29/Jan/2020:22:13:35 +0000] "GET /500 HTTP/1.1" 500 - 0.0863 47.196.149.202 - - [29/Jan/2020:22:13:35 +0000] "GET %2Fassets%2Ferror.css HTTP/1.1" 200 16253 0.0023
- is related to
-
THREESCALE-4015 Refactor backend/product metric system_names
-
- Closed
-
- links to