← /monthly-summary api call | common errors and troubleshooting | dividend tracker api documentation
Common Errors and Troubleshooting
Use the table below to troubleshoot common errors:
| Error Message / Code | Meaning | Likely Cause | Solution |
|---|---|---|---|
npm is not recognised as an internal or external command, operable program or batch file. |
Your system doesn't know the npm command. |
npm is not installed. |
Install node.js and npm. |
| This site can’t be reached. | Cannot connect to the server via the browser. | Server is not running or wrong port. | Start the local server. |
| Health check failed: | Cannot connect to the server via test-health.js | Server is not running or wrong port. | Start the local server. |
| 400: "error": "Invalid JSON. Please check your request body format." | Malformed JSON or missing required fields. | Your JSON file structure is incorrect or you're missing fields. | Check your JSON format. |
| 415: "error": "Expected content-type application/json." | Unsupported content type. | Your JSON file structure is incorrect or you're not using JSON. | Check your JSON format. |