Details
Assignee
UnassignedUnassignedReporter
Chas WoodfieldChas WoodfieldComponents
Environment
ProductionFix versions
Sprint
Priority
TBD
Details
Details
Assignee
Unassigned
UnassignedReporter
Chas Woodfield
Chas WoodfieldComponents
Environment
Production
Fix versions
Sprint
Priority
Created June 27, 2024 at 1:53 PM
Updated October 17, 2024 at 10:45 PM
Intermitently we are getting “Connection closed” for an error, this error means the socket was closed earlier than expected (ie. we had not received the result of our request).
Example request: https://libraries-dcb-hub-admin-scaffold-uat-git-production-knowint.vercel.app/patronRequests/3c333e04-de0c-4d72-8926-232a46279941
Side effects:
As this could happen at anytime the side effects could be almost anything depending on where it occurs.
Investigation results so far:
For the ones looked into so far, it has always occurred when we are trying to create the virtual item and place a hold on the borrowing agency
Further Investigations required:
Are we piggy backing requests on an already existing socket and if so can we disable the cache for a few days to see if we can go for a period without this occuring, the reason I suggest this is that some of the LMS systems we talk to are ancient and may very well close the connection after returning the result to ys, which if we are grabbing a connection from the pool will not find out about until we attempt send a request down the connection
Add logging so we know the URL, Request Body (if any) and the response body for when the error occurs
Add a report about which sites it is happening against, to see how wide this problem is
Look to see if it feasible when this occurs to see if the request being performed was permformed or not and if it wasn’t try the request again
If it is determined this is only occuring for specific sites or LMS, look and if disabling the cache show no more instances of this (currently we have at least 1 a day) and the report showed it is only occuring for specific sites / LMS investigate if it is feasible to disable those sites / LMS from performing connection cacheing.