Hi Agustina, If you are sure it's not a CORS policy error, then I'd recommend checking the backend logs. That "500 (Internal Server Error)" might also be logged in dspace.log or tomcat logs. If so, there may be more information there to help out. If it's reproducible semi-easily, you could also turn on "Debug mode for the REST API" per our troubleshooting guide: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove) (I wouldn't recommend leaving that on for a long time though, as allows full error stacktraces to be seen in every REST API response, which is really useful to debug issues...but also can be useful to hackers trying to find vulnerabilities in your system.)
Tim On Friday, March 17, 2023 at 11:46:47 AM UTC-5 Agustina Martinez wrote: > Hi all, > > We are experiencing intermittent errors, mostly affecting PATCH operations > (e.g. modifying items metadata, editing a user or group), when there is > heavy load in the backend. > > We do not see any relevant errors in the backend logs at all, but after > some timeout takes place I consistently see these two errors in the > developer tools: > > Access to XMLHttpRequest at > 'OUR-BACKEND-URL/server/api/core/items/421578b1-a644-4016-b3a0-c0afe904b0e8' > from origin 'https://dspace7-f-dev.lib.cam.ac.uk' has been blocked by > CORS policy: No 'Access-Control-Allow-Origin' header is present on the > requested resource. > polyfills.1cded4d53dfa4781.js:1 PATCH > OUR-BACKEND-URL/server/api/core/items/421578b1-a644-4016-b3a0-c0afe904b0e8 > net::ERR_FAILED 500 (Internal Server Error) > > It is definitely not CORS related and that error is mis-leading. > > Is anybody experiencing similar issues? So far I have not been able to > reproduce in the DEMO DSpace site or in my local environment. > > Best, > Agustina > -- 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 on the web visit https://groups.google.com/d/msgid/dspace-tech/d3e5b635-5627-43c4-a12b-238270cf92ben%40googlegroups.com.
