Details
-
Bug
-
Resolution: Fixed
-
Highest
Description
How to reproduce?
Open the side menu, type in anything into the search bar and select search in repository.
Expected Behavior
Search result page with results/matches
Actual Behavior
completely blank page
Error Details
Browser: Google Chrome Version 76.0.3809.100 (Official Build) (64-bit)
Stack Traces / errors from the browser console
I removed IDs, etc. to keep it anonymous
E.g. {{
{team-id}}}, {repo-name}, {search-term} can be replaced with actual valuesAccess to fetch at 'https://api.bitbucket.org/internal/metrics/statsd/' from origin 'https://bitbucket.org' has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.
POST https://api.bitbucket.org/internal/metrics/statsd/ net::ERR_FAILED
Access to fetch at 'https://api.bitbucket.org/2.0/teams/%7B{team-id}
%7D/search/code?search_query=repo%3A
{repo-name}%20{search-term}&fields=%2Bvalues.file.commit.repository.mainbranch.name' from origin 'https://bitbucket.org' has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.GET https://api.bitbucket.org/2.0/teams/%7B{team-id}%7D/search/code?search_query=repo%3A{repo-name}
%20
{search-term}&fields=%2Bvalues.file.commit.repository.mainbranch.name net::ERR_FAILEDRangeError: Invalid array length
at results-page.ts:26
at va (results-page.ts:39)
at results-page.ts:56
at Function.I5bs.Object.form [as mapToProps] (results-page.ts:86)
at r (wrapMapToProps.js:41)
at h (selectorFactory.js:44)
at selectorFactory.js:63
at Object.run (connectAdvanced.js:21)
at c.s.componentWillReceiveProps (connectAdvanced.js:152)
at uo (react-dom.production.min.js:133)
at Ai (react-dom.production.min.js:170)
at Pi (react-dom.production.min.js:180)
at Ga (react-dom.production.min.js:232)
at Ka (react-dom.production.min.js:233)
at Tc (react-dom.production.min.js:249)
at Cc (react-dom.production.min.js:248)
at kc (react-dom.production.min.js:245)
at Qa (react-dom.production.min.js:243)
at Object.enqueueSetState (react-dom.production.min.js:130)
at c.x.setState (react.production.min.js:13)
at c.s.onStateChange (connectAdvanced.js:205)
at Object.notify (Subscription.js:23)
at e.t.notifyNestedSubs (Subscription.js:62)
at c.s.onStateChange (connectAdvanced.js:202)
at v (createStore.js:173)
at redux-saga-core.esm.js:1408
at thunk.ts:5
at index.ts:71
at normalizr.ts:16
at hydrate.ts:63
at dispatch (applyMiddleware.js:35)
at chunk-e3ea3b33.js:122
at redux-saga-core.esm.js:472
at Yn (redux-saga-core.esm.js:31)
at er (redux-saga-core.esm.js:87)
at Jn (redux-saga-core.esm.js:46)
at gr.<computed> (redux-saga-core.esm.js:468)
at redux-saga-core.esm.js:1198
at d (redux-saga-core.esm.js:1265)
at f (redux-saga-core.esm.js:1155)
at s (redux-saga-core.esm.js:1245)
at redux-saga-core.esm.js:396
at nrWrapper (search?q=repo%3A{repo-name} {search-term}
&account=account-id:16)
RangeError: Invalid array length
at results-page.ts:26
at va (results-page.ts:39)
at results-page.ts:56
at Function.I5bs.Object.form [as mapToProps] (results-page.ts:86)
at r (wrapMapToProps.js:41)
at h (selectorFactory.js:44)
at selectorFactory.js:63
at Object.run (connectAdvanced.js:21)
at c.s.componentWillReceiveProps (connectAdvanced.js:152)
at uo (react-dom.production.min.js:133)
at Ai (react-dom.production.min.js:170)
at Pi (react-dom.production.min.js:180)
at Ga (react-dom.production.min.js:232)
at Ka (react-dom.production.min.js:233)
at Tc (react-dom.production.min.js:249)
at Cc (react-dom.production.min.js:248)
at kc (react-dom.production.min.js:245)
at Qa (react-dom.production.min.js:243)
at Object.enqueueSetState (react-dom.production.min.js:130)
at c.x.setState (react.production.min.js:13)
at c.s.onStateChange (connectAdvanced.js:205)
at Object.notify (Subscription.js:23)
at e.t.notifyNestedSubs (Subscription.js:62)
at c.s.onStateChange (connectAdvanced.js:202)
at v (createStore.js:173)
at redux-saga-core.esm.js:1408
at thunk.ts:5
at index.ts:71
at normalizr.ts:16
at hydrate.ts:63
at dispatch (applyMiddleware.js:35)
at chunk-e3ea3b33.js:122
at redux-saga-core.esm.js:472
at Yn (redux-saga-core.esm.js:31)
at er (redux-saga-core.esm.js:87)
at Jn (redux-saga-core.esm.js:46)
at gr.<computed> (redux-saga-core.esm.js:468)
at redux-saga-core.esm.js:1198
at d (redux-saga-core.esm.js:1265)
at f (redux-saga-core.esm.js:1155)
at s (redux-saga-core.esm.js:1245)
at redux-saga-core.esm.js:396
at nrWrapper (search?q=repo%3A
{search-term}
&account=acount-id:16)
The above error occurred in task gp
created by takeLatest(search/FETCH_SEARCH_RESULTS_REQUEST, gp)
created by $p
created by $p
Tasks cancelled due to error:
takeLatest(search/FETCH_SEARCH_RESULTS_REQUEST, gp)
takeLatest(search/OPT_IN_TO_BETA_REQUEST, wp)
takeLatest(search/REFINE_QUERY, Ep)
takeLatest(search/SYNC_URL_TO_STATE, Op)
takeLatest(sidebar/UPDATE_STATE, D)
takeLatest(global/UPDATE_NAVIGATION_STATE, Zp)
takeLatest(global/SCROLL_TO, $f)
Access to fetch at 'https://api.bitbucket.org/internal/metrics/statsd/' from origin 'https://bitbucket.org' has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.
POST https://api.bitbucket.org/internal/metrics/statsd/ net::ERR_FAILED
Additional Information
The CORS-related errors are probably related to Issue #13887 which is marked as resolved, but seems to came back. (should be reopened as well)