Closed saralavanip closed 7 years ago
@brylie Task is to investigate. Let's re-estimate and perhaps re-assign based on your investigation.
In trying to reproduce this issue, I encountered an error when trying to log in to our API Umbrella instance:
Secure Connection Failed
An error occurred during a connection to metatavu-restapi-proxy1.apinf.io:80. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
I would like to log in to https://nightly.apinf.io:3004/, so that I can verify that the API created on APInf is also created on API Umbrella 0.14.x deployment.
cc: @shaliko @bajiat
@saralavanip Issue fixed.
The issue was that I used own GitHub OAuth app credentials for setup second api-umbrella (0.14.0). Thanks @brylie for help me fix it.
After gaining access to the Nightly API Umbrella 0.14, I see there are two configured API Backends:
I added the Analytics Test backend. Next, I will make some calls to that endpint to see if analytics are recorded.
Making a request to the Analytics Test endpoint works properly, returning the Google search page that is configured as the backend:
API Umbrella records analytic(s) for the request(s) to the /analytics-test/
endpoint:
The APInf dashboard view for the Analytics Test endpoint behaves as described in the issue, stopping during the Fetching data phase.
Several messages appear in the browser console.
Exception in delivering result of invoking 'getElasticSearchData': TypeError: Cannot read property 'hits' of undefined
details: undefined
error: "[query_phase_execution_exception] Result window is too large, from + size must be less than or equal to: [10000] but was [50000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level parameter."
errorType: "Meteor.Error"
message: "[[query_phase_execution_exception] Result window is too large, from + size must be less than or equal to: [10000] but was [50000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level parameter.]"
reason: undefined
For readability:
"[query_phase_execution_exception] Result window is too large, from + size must be less than or equal to: [10000] but was [50000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level parameter.
This seems to be related to our hard-coded query limit.
We have work-in-progress to refactor the Dashboard code, including removing the 50,000 result limit:
A stop-gap solution would be to remove the hard-coded limit while refactoring the Dashboard.
cc: @bajiat @frenchbread @marla-singer
Closing, since we are re-making the dashboard without a query limit.
@bajiat @brylie Verified it in a new Dashboard and it works as expected
Purpose: Testing 'API Umbrella 0.14.0' on nightly.apinf.io
Steps
1.Visit https://nightly.apinf.io (v 0.42.0)
2.Login as admin
3.Add new API
4.Connect API to proxy: 'API Umbrella 0.14.0' 5.Get API key
6.Call API
7.Check analytics
Findings
Analytics not shown after successful API call, shows user info text "Fetching latest data..."
Screenshot