Hello!
I faced a problem with creating OAuth2 token when trying to configure interaction with SuiteCRM 7.11 via API v8:
Required Procedure:
-
Description keys were generated and updated: “Before you start calling endpoints” (https://docs.suitecrm.com/developer/api/version-8/json-api/)
-
Authorization was configured according to the description in “Configure Authentication” in “Client Credentials Grant” (https://docs.suitecrm.com/developer/api/version-8/configure-authentication/)
- Client Credential with client_secret=“crmworkerclient” and binding to the user crm_worker
- ID of the created element - c94b8d10-68f6-f163-63a9-5cd192df16f1
- Authorization request made:
post https://*******************/Api/access_token
with parameters as follows:
grant_type:client_credentials
client_id:c94b8d10-68f6-f163-63a9-5cd192df16f1
client_secret:crmworkerclient
In the title:
Content-type:application/vnd.api+json
Accept:application/vnd.api+json
Reply received:
state 404 Not Found
{“message”:“Not found”}
In this case, log /var/log/crm/suitecrm.log is as follows:
Wed May 8 12:29:00 2019 [26673][336cdf21-1ef1-7ae7-343a-5cc8242091ea][FATAL] Error: File [modules/OAuth2Tokens/metadata/editviewdefs.php] is missing. Unable to create because no corresponding HTML file was found.
Similar error when creating OAUTH TOKENS from the admin panel «Error: File [modules/OAuth2Tokens/metadata/editviewdefs.php] is missing. Unable to create because no corresponding HTML file was found.»
How can I log into API and how to fix these errors?