You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pynamodb.exceptions.GetError: Failed to get item: An error occurred (InvalidSignatureException) on request (<...>) on table (...) when calling the GetItem operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
when extra_headers configured to have headers used and striped by a proxy
A dictionary of headers that should be added to every request. This is only useful when interfacing with DynamoDB through a proxy, where headers are stripped by the proxy before forwarding along. Failure to strip these headers before sending to AWS will result in an InvalidSignatureException due to request signing.
@raulmyocu found that request is signed after extra_headers are added in v6.0.0, in older version (v5.5.1 where error is not observed), requests are signed before extra_headers being added.
Issue:
when
extra_headers
configured to have headers used and striped by a proxyPotential cause
Per documentation https://pynamodb.readthedocs.io/en/stable/settings.html#extra-headers
PynamoDB/pynamodb/connection/base.py
Lines 334 to 337 in d61d906
@raulmyocu found that request is signed after
extra_headers
are added in v6.0.0, in older version (v5.5.1 where error is not observed), requests are signed beforeextra_headers
being added.PynamoDB/pynamodb/connection/base.py
Lines 324 to 329 in 7b60000
Related: #1079
The text was updated successfully, but these errors were encountered: