10up / wpsnapshots

(DEPRECATED) A project sharing tool for WordPress.
MIT License
215 stars 22 forks source link

Invalid signature when using PHP 7.4 #83

Open Shelob9 opened 3 years ago

Shelob9 commented 3 years ago

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

Shelob9 commented 3 years ago

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

jeffpaul commented 3 years ago

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