Fix #5672: resolve health check issue with response handling#5673
Conversation
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @FrancescoMolinaro ! I've verified this fixes the issue.
Because it looks like we removed axios from all branches (see #5347 and #5379), this likely impacts all supported versions. So, I'll try to auto-backport this to all branches.
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-7_x
git worktree add -d .worktree/backport-5673-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-5673-to-dspace-7_x
git switch --create backport-5673-to-dspace-7_x
git cherry-pick -x 83f68792878f442feba6e2f69fa3f0d9eaf532fe |
|
Successfully created backport PR for |
|
Successfully created backport PR for |
|
@FrancescoMolinaro : It looks like we were only able to auto-backport this to 9.x and 8.x. I suspect the same issue exists on 7.6.x though because |
References
Fixes #5672
Description
Adapted response handling for health check on SSR
Instructions for Reviewers
The healthCheck() function in server.ts was migrated from axios to native fetch, but the response handling was not updated.
List of changes in this PR:
Adapted repsonse handling of healthCheck function
To test build the app in prod mode and navigate to http://localhost:4000/app/health
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.