Error trying to use PDFTron Web Services (PWS)

43 views
Skip to first unread message

Ryan

unread,
Jan 21, 2016, 5:34:10 PM1/21/16
to pdfne...@googlegroups.com
Question:
I have my PWS credentials correct, but I am getting the following error message.

Can't establish a connection due networking error; Check your connectivity to the internet and firewall settings.

What is wrong?

Answer:
Most likely there is a firewall, or some other network security measurement, getting in the way.

The following is information you will want to pass to your network admin.

PDFNet will make an HTTPS connection to api.pdftron.com, which is a CNAME, and will resolve to a

*.*.compute.amazonaws.com

such as

ec2-50-112-4-107.us-west-2.compute.amazonaws.com

Also you need to make sure that your firewall is not stripping headers, in particular the "Authorization: Basic <base64_encoded_key>" header.

Supplemental

You can also test your connection to PWS outside of PDFNet SDK, or one of our command line tools, by trying the following.

1. Put the following url into your browser and make sure you get a "<status>ok</status>"
api.pdftron.com/v2/

2. Go to this url https://api.pdftron.com/v2/document and for username enter your API_ID, and for password enter your API_Secret






Reply all
Reply to author
Forward
0 new messages