From ea578844a85b7088c1436eb16a60ca6bce409c2d Mon Sep 17 00:00:00 2001 From: Timothy Strimple Date: Fri, 7 Dec 2018 14:21:45 -0600 Subject: [PATCH] Updated vision api url The url in the existing version returns a 404 error. --- javascript/ResizeImage/index-module5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ResizeImage/index-module5.js b/javascript/ResizeImage/index-module5.js index a8dfb0d..03e7f1e 100644 --- a/javascript/ResizeImage/index-module5.js +++ b/javascript/ResizeImage/index-module5.js @@ -12,7 +12,7 @@ module.exports = function (context, myBlob) { context.done(error); } else { context.log('calling cog svc'); - axios.post(process.env.COMP_VISION_URL + '/analyze?visualFeatures=Description&language=en', myBlob, { + axios.post(process.env.COMP_VISION_URL + 'vision/v1.0/analyze?visualFeatures=Description&language=en', myBlob, { headers: { 'Ocp-Apim-Subscription-Key': process.env.COMP_VISION_KEY, 'Content-Type': 'application/octet-stream'