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
898 stars 449 forks source link

PHP Fatal error: NotAuthenticated #101

Closed RhanCandia closed 7 months ago

RhanCandia commented 7 months ago

Can't make the script work.

PHP Fatal error:  Uncaught Hitrov\Exception\ApiCallException: {
    "code": "NotAuthenticated",
    "message": "The required information to complete authentication was not provided or was incorrect."
} 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
RhanCandia commented 7 months ago

Weird. I generated an new key and that worked.