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

TypeError during commit #119

Closed
alanorth opened this issue Aug 26, 2021 · 1 comment
Closed

TypeError during commit #119

alanorth opened this issue Aug 26, 2021 · 1 comment
Labels
backend Related to backend application bug Something isn't working P-low Low priority

Comments

@alanorth
Copy link
Member

I see this sometimes and I don't know what causes it:

[Nest] 88   - 08/26/2021, 5:17:26 PM   [HarvesterService] reindex function is called
[Nest] 88   - 08/26/2021, 5:17:26 PM   [HarvesterService] updateAliases final to temp
[Nest] 88   - 08/26/2021, 5:17:27 PM   [HarvesterService] Delete final
[Nest] 88   - 08/26/2021, 5:17:27 PM   [HarvesterService] Create final
[Nest] 88   - 08/26/2021, 5:18:20 PM   [HarvesterService] Reindex to final
[Nest] 88   - 08/26/2021, 5:18:20 PM   [HarvesterService] updateAliases temp to final
[Nest] 88   - 08/26/2021, 5:18:20 PM   [DSpaceAltmetrics] ResponseError: search_phase_execution_exception +47ms
(node:88) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'body' of undefined
    at getMoreUntilDone (/backend/dist/plugins/dspace_altmetrics/index.js:112:45)
    at getMoreUntilDone (/backend/dist/plugins/dspace_altmetrics/index.js:127:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:88) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 70)
(node:88) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Nest] 88   - 08/26/2021, 5:18:20 PM   [DSpaceAltmetrics] ResponseError: search_phase_execution_exception +2ms
(node:88) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'body' of undefined
    at getMoreUntilDone (/backend/dist/plugins/dspace_altmetrics/index.js:112:45)
    at getMoreUntilDone (/backend/dist/plugins/dspace_altmetrics/index.js:127:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:88) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 71)
[Nest] 88   - 08/26/2021, 5:18:21 PM   [HarvesterService] Delete temp
[Nest] 88   - 08/26/2021, 5:18:21 PM   [HarvesterService] Create temp
[Nest] 88   - 08/26/2021, 5:18:21 PM   [HarvesterService] Indexing finished

The error comes when I commit indexing. I see this error in the backend/api logs. The commit seems successful nevertheless.

@alanorth alanorth added bug Something isn't working infrastructure Related to server or deployment labels Aug 26, 2021
@alanorth alanorth added P-low Low priority backend Related to backend application and removed infrastructure Related to server or deployment labels Jul 21, 2023
@alanorth
Copy link
Member Author

alanorth commented Nov 7, 2023

After merging #185 I have not seen this error during index commit. Closing.

@alanorth alanorth closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend application bug Something isn't working P-low Low priority
Projects
None yet
Development

No branches or pull requests

1 participant