NotAuthorizedOrNotFound
giam-forte opened this issue · comments
When I run the script it returns:
{
"code": "NotAuthorizedOrNotFound",
"message": "Authorization failed or requested resource not found."
}
I tried to do:
oci iam user get --user-id {USER-ID}
To check is the API fine and looks fine
what might be happening?
I had double checked:
OCI_REGION
OCI_USER_ID
OCI_TENANCY_ID
OCI_KEY_FINGERPRINT
OCI_PRIVATE_KEY_FILENAME
against my .oci/config file
and if I modify only a single letter of the above parameters the error changes to:
{
"code": "NotAuthenticated",
"message": "The required information to complete authentication was not provided or was incorrect."
}
How I can enable the --debug flag in the script to have more information about was wrong?
I found the problem the OCI_IMAGE_ID variable had a line break that I didn't notice before.
Anyway thank you for your good work!!!