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

Incorrectly formatted request. Please refer to our documentation for help #134

Open
Liben-Chen opened this issue May 11, 2024 · 1 comment

Comments

@Liben-Chen
Copy link

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."

@dutr4
Copy link

dutr4 commented Jun 4, 2024

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'),

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