Update API Keys and fix frontend bugs
This commit is contained in:
@@ -132,6 +132,9 @@ exports.analyzeImage = async (req, res) => {
|
||||
|
||||
} catch (error) {
|
||||
console.error('Error analyzing image:', error.response ? JSON.stringify(error.response.data) : error.message);
|
||||
res.status(500).json({ error: error.message || 'Failed to analyze image' });
|
||||
res.status(500).json({
|
||||
error: error.message || 'Failed to analyze image',
|
||||
details: error.response ? error.response.data : null
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user