Open willfore opened 3 months ago
Thank you for the report. Are you using the latest version? We have a custom aws signature implementation in req and there is probably a bug. Could you try using Req without :aws_sigv4 option and do the signature using :aws_signature dep?
I'll give that a shot and report back shortly. Thanks!
So I'm using req 0.5.6 and req_s3 0.2.1. For the auth portion I simply set the env vars as suggested in the docs. I didn't see any mention of a aws_signature dep. Can you point me in that direction?
Yeah sorry I meant as if the :aws_sigv4 option and req_s3 didn’t exist. You can use aws_signature to sign a request and req to make it: https://gist.github.com/wojtekmach/90efd7bbec164895629704362cf4a130.
so using the snippet you gave as an example I can run the initial calls with no issue but when I attempt to utilize the continuation-token I run into the same error.
Could you try passing uri_encode_path: false as the last argument to aws_signature?
Same issue unfortunately
Just to update ( not that I want to use it ) if I do these same calls using the ex_aws libraries it works without issue.
I'll start by saying this could totally be something I'm missing but I'm not sure what. I'm attempting to query the next results using the continuation token and it is returning SignatureDoesNotMatch. I've double checked all of the attempts using bruno and everything works just fine. Here's the details:
Make initial S3 query:
Response:
I then setup my next query
This always returns a 403 status with the code SignatureDoesNotMatch. When i do the same exact attempt using Bruno or Postman or even curl it works just fine. After debugging the request I don't see anything going on different that would cause the issue but admittedly I may have missed something. I thought it may be the additional parameters at first but that seems to work fine on the initial requests without issue. Any ideas on what it may be?