AlohiHQ/faxplus-python

Send Fax Returning null with status code 500 Server Error

Closed this issue · 1 comments

Calling send_fax returns null as a response with status code 500. What causes this issue?

Here's the code:

retry_options = RetryOptions(count=2, delay=15)
outbox_options = OutboxOptions(
    enhancement=True, retry=retry_options
)

payload_outbox = PayloadOutbox(
    from_number="+1234567",
    to=["+1234567"],
    files=["file.pdf"],
    options=outbox_options,
)

res = outbox_api.send_fax(
    user_id="self", body=payload_outbox
)

This raises an ApiException with 500 Internal Server Error.

Resolved by using an access token from an account with an Enterprise plan.