Hey, I had the same node detect call api axios error issue, and it was because I wasn’t handling JSON responses properly. If your API returns JSON, make sure you’re parsing it correctly. Here’s an example:
```javascript
axios.get('your-api-endpoint')
.then(response => {
const data = JSON.parse(response.data);
console.log(data);
})
.catch(err => console.error('Error:', err));
```
Also, check out the `axios-debug-log` package—it logs all requests and responses, which can be super helpful for debugging.
```javascript
axios.get('your-api-endpoint')
.then(response => {
const data = JSON.parse(response.data);
console.log(data);
})
.catch(err => console.error('Error:', err));
```
Also, check out the `axios-debug-log` package—it logs all requests and responses, which can be super helpful for debugging.
