Xamarin Forms - can't load s3 sign url

693 views
Skip to first unread message

jayas...@contentraven.net

unread,
Sep 12, 2017, 12:22:06 PM9/12/17
to PDFTron PDFNet SDK
Hi All,
Using Xamarin Forms,I am trying to create a presigned URL for a private file test.pdf on S3.

sample code:
 mPdfViewCtrl.OpenUrlAsync("","");

When I try to access it, it shows
<Error>
<Code>AuthorizationQueryParametersError</Code>
<Message>
Query-string authentication version 4 requires the X-Amz-Algorithm, X-Amz-Credential, X-Amz-Signature, X-Amz-Date, X-Amz-SignedHeaders, and X-Amz-Expires parameters.
</Message>
<RequestId>97377E063D0B1D09</RequestId>
<HostId>
6GE7EdqUvCEJis+fPoWR0Ffp2kN9Mlql4gs+qB4uY3hA4qR2wYrImkZfv05xy4XVjsZnRDVN63s=
</HostId>
</Error>

I am totally stuck and would really appreciate some idea on how to solve it.

Thanks

Shakthi Wijeratne

unread,
Sep 12, 2017, 8:07:38 PM9/12/17
to pdfne...@googlegroups.com
Query-string authentication version 4 requires the X-Amz-Algorithm, X-Amz-Credential, X-Amz-Signature, X-Amz-Date, X-Amz-SignedHeaders, and X-Amz-Expires parameters.
You seem to be incorrectly queering the S3 servers. Please verify the URL that you pass to mPdfViewCtrl.OpenUrlAsync("","");


Shakthi,

jayas...@contentraven.net

unread,
Oct 4, 2017, 3:38:47 PM10/4/17
to PDFTron PDFNet SDK
Hi Shakthi,
Below url not loding in mPdfViewCtrl.OpenUrlAsync("","").

Note: Cloudfront signed url is working as expected from our end. But issue only in s3 PreSignedUrl.

Please help me ASAP.

waiting for your reply.

Thanks

Ryan

unread,
Oct 6, 2017, 7:49:08 PM10/6/17
to PDFTron PDFNet SDK
When I paste that URL into chrome, I see the following warning. (to see the warning, check "Preserve Log" in the Chrome developer network tab.



jayas...@contentraven.net

unread,
Oct 10, 2017, 12:20:24 PM10/10/17
to PDFTron PDFNet SDK
Hi Rayan,
We enabled "Preserve Log" in the Chrome developer network tab and then enter the s3 signed url but your mentioned warning message is not displayed in our end.

jayas...@contentraven.net

unread,
Oct 13, 2017, 7:54:04 PM10/13/17
to PDFTron PDFNet SDK
Hi Ryan,
can you please create s3 presigned url and then load it to mPdfViewCtrl.OpenUrlAsync("",""). from your end.

Its working or not?

Thanks

Ryan

unread,
Oct 13, 2017, 8:24:49 PM10/13/17
to PDFTron PDFNet SDK
Hi, thank you for your patience. I believe I found the issue, and I have a correction in our developer channel.

Are you working on Xamarin.Android or Xamarin.iOS? I can send you a patched release build next week.

jayas...@contentraven.net

unread,
Oct 16, 2017, 1:01:57 PM10/16/17
to PDFTron PDFNet SDK
Ryan, Thank you for your update.

Currently we are working on xamarin IOS & Droid(xamarin forms) from our end. could you please send a patched release in both.

Thanks
Reply all
Reply to author
Forward
0 new messages