whatsapp-business-java-api icon indicating copy to clipboard operation
whatsapp-business-java-api copied to clipboard

Request: Ability to debug requests

Open thomaspaulin opened this issue 1 month ago • 1 comments

Ola Mauricio,

First of all thanks for creating this SDK, it looks very promising! I was trying the example which sends a text message, but because I initially used the wrong phone number it didn't work. Unfortunately, I only found this out due to messing with the variables since there doesn't appear to be any logging (All I see is that java finished with a non-zero code).

In #82 you mentioned you were looking into ways to log the requests, did you ever figure something out?

Thanks!

Edit: I'm going to try https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor and will report back if it works well. Edit2: Forking this library and using the above interceptor produced logs showed the HTTP Method, URL, headers, and body.

thomaspaulin avatar Oct 17 '25 08:10 thomaspaulin

Hello and welcome! We're glad to see that you've opened your first issue. We appreciate your contribution and would love to hear more about the problem you're experiencing. Our team is actively monitoring this repository and we will do our best to respond to your issue as soon as possible. Thank you for using our project and we look forward to working with you!

github-actions[bot] avatar Oct 17 '25 08:10 github-actions[bot]