Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-morin committed Feb 9, 2024
1 parent 0a3cf66 commit 911dd7d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/controllers/v1/computervision_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,21 +200,12 @@ const ComputervisionController = class ComputervisionController {
}, 5000 );
let json;
try {
console.log("SCORE IMAGE PATH");
console.log("config.imageProcesing.tensorappURL="+config.imageProcesing.tensorappURL);
console.log("formData="+JSON.stringify(formData));
console.log("signal="+JSON.stringify(requestAbortController.signal));

const response = await fetch( config.imageProcesing.tensorappURL, {
method: "POST",
body: formData,
signal: requestAbortController.signal
} );
if ( !response.ok ) {
console.log("SCORE IMAGE PATH RESPONSE:");
console.log("response="+JSON.stringify(response));
console.log("response.body="+JSON.stringify(response.body));

throw util.httpError( 500, "Error scoring image" );
}
json = await response.json( );
Expand Down

0 comments on commit 911dd7d

Please sign in to comment.