Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

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 this issue Mar 29, 2024 · 1 comment

Comments

@desioxss
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants