hitrov/oci-arm-host-capacity

Incorrectly formatted request. Please refer to our documentation for help

Liben-Chen opened this issue · 1 comments

Does anyone know if it still works right now (5/11/2024)?
I got this error.

"code": "CannotParseRequest"
"message": "Incorrectly formatted request. Please refer to our documentation for help."

I resolved this by changing the index.php file.
I added the line:
$ociAvailabilityDomain = getenv('OCI_AVAILABILITY_DOMAIN') ? json_decode(getenv('OCI_AVAILABILITY_DOMAIN'), true) : null;

And I changed this line:
$config = new OciConfig(
getenv('OCI_REGION'),
getenv('OCI_USER_ID'),
getenv('OCI_TENANCY_ID'),
getenv('OCI_KEY_FINGERPRINT'),
getenv('OCI_PRIVATE_KEY_FILENAME'),
$ociAvailabilityDomain, // I changed this line
getenv('OCI_SUBNET_ID'),