Thank you for helping me troubleshoot this error. I think some of the
problems were related to old node packages.
Running the following commands helped:
cd D:\apps\dspace-angular-dspace-9.1
npm run clean
npm install
npm run build:prod
This allows pages like the /statistics to successfully load from typing the
address in a browser.
Handle links are not loading successfully the first time but a browser
reload works. I have attached the full log.
Redirecting from /handle/10342/4284 to
/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0 with 301
GET /handle/10342/4284 301 396.718 ms - 84
Warning [ERR_HTTP_HEADERS_SENT]: Tried to set headers after they were sent
to the client
Error: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:700:11)
at ServerResponse.res.set.res.header
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:2999582)
at ServerResponse.res.send
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:2993950)
at C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:8089795
at _ZoneDelegate.invoke
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3941414)
at ZoneImpl2.run
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3933987)
at C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3952322
at _ZoneDelegate.invokeTask
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3942256)
at ZoneImpl2.runTask
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3935056)
at drainMicroTaskQueue
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3945490)
GET /items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0 - - ms - -
Thanks,
Nick
On Tuesday, August 5, 2025 at 2:11:13 PM UTC-4 Joyner Library wrote:
> Dear DSpace Team,
>
> My library has upgraded to DSpace 9.1. Users can login and deposit items
> and statistics load if a link is clicked on the page. Going directly to the
> statistics page creates a 500 error.
> https://thescholarship.ecu.edu/statistics
>
> my front end settings are
> ui:
> ssl: false
> host: localhost
> port: 4000
>
> rest:
> ssl: true
> host: thescholarship.ecu.edu
> port: 443
>
> local.cfg settings are
> dspace.server.url = https://thescholarship.ecu.edu/server
> dspace.ui.url = https://thescholarship.ecu.edu
> rest.cors.allowed-origins = ${dspace.ui.url}, http://localhost:4000,
> https://thescholarship.ecu.edu, http://locahost:8080
>
> Please help me troubleshoot this error. I have attached a few items from
> the various log files but it may not be helpful.
>
> Nick Crimi
> ECU Libraries
>
--
All messages to this mailing list should adhere to the Code of Conduct:
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/dspace-tech/795e22d0-b8d6-4684-8886-f3ecd2949e70n%40googlegroups.com.
[09:48:46 GMT-0400 (Eastern Daylight Time)] Listening at http://localhost:4000/
Redirecting from /handle/10342/4284 to
/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0 with 301
GET /handle/10342/4284 301 396.718 ms - 84
Warning [ERR_HTTP_HEADERS_SENT]: Tried to set headers after they were sent to
the client
Error: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:700:11)
at ServerResponse.res.set.res.header
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:2999582)
at ServerResponse.res.send
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:2993950)
at C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:8089795
at _ZoneDelegate.invoke
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3941414)
at ZoneImpl2.run
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3933987)
at C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3952322
at _ZoneDelegate.invokeTask
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3942256)
at ZoneImpl2.runTask
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3935056)
at drainMicroTaskQueue
(C:\apps\dspace-angular-dspace-9.1\dist\server\main.js:1:3945490)
GET /items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0 - - ms - -
The response for
'https://irdev.ecu.edu/server/api/core/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0/bundles'
has the self link
'https://irdev.ecu.edu/server/api/core/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0/bundles?embed=primaryBitstream&embed=bitstreams/format&embed.size=bitstreams=5'.
These don't match. This could mean there's an issue with the REST endpoint
The response for
'https://irdev.ecu.edu/server/api/core/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0/bundles?size=9999'
has the self link
'https://irdev.ecu.edu/server/api/core/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0/bundles?size=1000'.
These don't match. This could mean there's an issue with the REST endpoint
The response for
'https://irdev.ecu.edu/server/api/core/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0/bundles?size=9999'
has the self link
'https://irdev.ecu.edu/server/api/core/items/67ac1577-0993-4a96-b6cf-18a0fcc5ada0/bundles?embed=primaryBitstream&size=1000'.
These don't match. This could mean there's an issue with the REST endpoint
The response for
'https://irdev.ecu.edu/server/api/core/bundles/75ffe16f-ee0d-4969-a9a9-d58600b8394d/bitstreams'
has the self link
'https://irdev.ecu.edu/server/api/core/bundles/75ffe16f-ee0d-4969-a9a9-d58600b8394d/bitstreams?embed=format'.
These don't match. This could mean there's an issue with the REST endpoint
The response for
'https://irdev.ecu.edu/server/api/core/bundles/75ffe16f-ee0d-4969-a9a9-d58600b8394d/bitstreams?page=0&size=5'
has the self link
'https://irdev.ecu.edu/server/api/core/bundles/75ffe16f-ee0d-4969-a9a9-d58600b8394d/bitstreams?page=0&embed=accessStatus&size=5'.
These don't match. This could mean there's an issue with the REST endpoint
The response for
'https://irdev.ecu.edu/server/api/core/bundles/d6c630cf-b62b-4b9c-875f-a9256fae99ea/bitstreams'
has the self link
'https://irdev.ecu.edu/server/api/core/bundles/d6c630cf-b62b-4b9c-875f-a9256fae99ea/bitstreams?embed=format'.
These don't match. This could mean there's an issue with the REST endpoint
GET /favicon.ico 404 1370.949 ms - -