About Lesson
Lesson Notes
-
Importance of Logs:
- Logs are essential for tracing issues, understanding transaction flows, and identifying bottlenecks.
- Log key events such as API requests, responses, errors, and timestamps.
-
Postman as a Debugging Tool:
- Use Postman to test individual API endpoints, inspect responses, and simulate errors.
- Save collections for each API (e.g., STK Push, B2C) for quick reference during debugging.
-
Debugging Common Issues:
- Invalid credentials: Check the consumer key, secret, and tokens.
- API timeouts: Investigate server configurations or network issues.
- Incorrect parameters: Double-check required fields like shortcodes, amounts, and timestamps.