Skip to content

Commit e3bbc52

Browse files
committed
more debugging logs to address foirequests<>foiflow connection
1 parent a0c3f38 commit e3bbc52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/apiCustomFunctions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ const submitFoiRequest = async (server, req, res, next) => {
7878
}
7979
catch(error){
8080
console.log(`${error}`);
81+
console.log("FOI API STATUS:", error.response.status);
82+
console.log("FOI API DATA:", error.response.data)
83+
console.log(response)
8184
req.log.info('Failed:', error);
8285
const unavailable = new restifyErrors.ServiceUnavailableError(error.message || 'Service is unavailable.');
8386
return next(unavailable);

0 commit comments

Comments
 (0)