401 Error when searching by tag Node JS
I'm getting a 401 error with the following code. All I saw in the documentation is that cloudinary uses Basic authentication. Are there any other settings I need to enable to be able to fetch a list of images by tag?
*The url I'm building works in a browser.
app.get('/api/slideshow', function (req, res) {
console.log(req.body);
//const values = queryString.parse(this.props.location.search);
varkey='<key>';
varsecret='<secret>';
varbasicAuth='Basic '+btoa(key+':'+secret);
axios.get(url, {
headers: { 'Authorization':+basicAuth }
})
.then(res => {
if (res.status!==200) throwError(res.statusText);
returnres;
}).catch(error => {
throw(error);
});
});
-
Hi Ryan,
You can check your setting in your [security setting page here](https://cloudinary.com/console/settings/security).
If you want, you're more than welcomed to open a ticket and we'll be happy to look at your account.
Thanks,
-
Hi Ryan,
Can you please open a support ticket: support@cloudinary.com with your cloud name that we can look at our logs and the setting?
Please sign in to leave a comment.
Comments
6 comments