question

eric-hodges avatar image
eric-hodges asked ·

I need help diagnosing an undelivered fax.

I'm testing some Java code to send faxes via RingCentral.  Some of my faxes are sent and delivered.  Other faxes have get the same response from the REST API, but are never delivered.  They are all using the same credentials and going to the same fax number.

When I look in the call logs for the app, I don't see the faxes that weren't delivered.

Both responses look like they succeeded, with a message status of "Queued".

Is there anything I can do to find out what happened to the fax that was never delivered after it left my client?
topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered ·
You need to continue to poll the call logs status. "Queued" means the message hasn't been sent yet. If sending is failed you will see the status as "Failed".
1 comment Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

The fax that is never delivered never shows up in my call log.  I see "queued" in the response from the server, but the fax never shows up in my log.  Is there some other place I should be looking to diagnose this failure?
0 Likes 0 · ·
eric-hodges avatar image
eric-hodges answered ·
Follow up:

I was using the Java library provided by RingCentral when I wrote this question.  Since then I have abandoned that library and written my own code.  RingCentral's code depends on OkHttpClient, which spawns threads that never die and tries to hide its connection pool management.  Once I stopped using that and started using an Apache HttpClient all of my faxes are being delivered.  I'm not sure why they weren't when I used the RingCentral JAR.
2 comments Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Thank you for the update. It might be a coincidence. We have users using the Java SDK who have no problem sending faxes. But I appreciate if you provide me a way to reproduce the issue. Like the code you used to send fax with RingCentral Java SDK. Thanks.
0 Likes 0 · ·
Sorry, I didn't save any of that code.  It was based on the code in com.ringcentral.FaxTest.

It might have had something to do with setting the filename field in the request body part for an attachment.  I notice that when I set that field I get the same behavior (response says queued but fax never arrives and never shows up in call log).  When I leave that field empty it works.
0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.