hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
989 stars 497 forks source link

Fatal error: Uncaught Hitrov\Exception\ApiCallException: { "code": "NotAuthenticated", "message": "Failed to verify the HTTP(S) Signature" } in /home/ubuntu/oci-arm-host-capacity/src/HttpClient.php:42 #127

Open desioxss opened 7 months ago

desioxss commented 7 months ago

PHP Fatal error: Uncaught Hitrov\Exception\ApiCallException: { "code": "NotAuthenticated", "message": "Failed to verify the HTTP(S) Signature" } in /home/ubuntu/oci-arm-host-capacity/src/HttpClient.php:42 Stack trace: #0 /home/ubuntu/oci-arm-host-capacity/src/OciApi.php(257): Hitrov\HttpClient::getResponse() #1 /home/ubuntu/oci-arm-host-capacity/src/OciApi.php(132): Hitrov\OciApi->call() #2 /home/ubuntu/oci-arm-host-capacity/index.php(74): Hitrov\OciApi->getInstances() #3 {main} thrown in /home/ubuntu/oci-arm-host-capacity/src/HttpClient.php on line 42

I get this when running "php index.php" on micro instance for flex instance, what should I do?

HexHands commented 7 months ago

I believe the issue is that the private key file that you gave was incorrect. You need to use the private key file obtained from creating the API key.