10up/wpsnapshots

Invalid signature when using PHP 7.4

Opened this issue · 2 comments

When using PHP 7.4.16 with Ubuntu running in WSL/2 I get this error running wpsnapshots pull or wpsnaphsots search. Switching to PHP 7.3.27 resolved my issue.

Error executing "Scan" on "https://dynamodb.us-west-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://d
  ynamodb.us-west-1.amazonaws.com` resulted in a `400 Bad Request` response:
  {"__type":"com.amazon.coral.service#InvalidSignatureException","message":"The request signature we calculated does
  not m (truncated...)
   InvalidSignatureException (client): 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. - {"__type":"c
  om.amazon.coral.service#InvalidSignatureException","message":"The request signature we calculated does not match th
  e signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation fo
  r details."}

Steps to Reproduce

  1. Install wpsnapshots in Ubunutu with PHP 7.4
  2. wpsnapshots search t-mobile
  3. See error

Environment information

  • Device: Dell XPS 13
  • OS: Windows 10 Pro

Same issue with PHP 8.0.3 (Windows 10 Pro wsl/2 Ubuntu 20.04)

Thanks for the details @Shelob9, if you want to / are able to submit a PR to resolve that would be great!