Unable to get API or application running

I created a machine to machine application. Under the APIs tab I authorized an API for given application.
Now, if I open “quick start” tab, I get “Error! Unexpected failure trying to fetch apis, try again later.” and it is not possible to select an API from the “Customized for API” selection.

On the APIs page (Applications → APIs) I get “Error! API Error. Please contact support if the problem persists” if I open the “Test” tab.

It is not fetching or creating a token in the “Sending the token to the API” box…

curl --request GET
–url http://path_to_your_api/
–header ‘authorization: Bearer undefined’ <-------- instead undefined, there is a token on the Test page for other APIs.

If I do this…

curl --request POST
–url /oauth/token
–header ‘content-type: application/json’
–data ‘{“client_id”:“”,“client_secret”:“”,“audience”:“”,“grant_type”:“client_credentials”}’

I get

{“error”:“server_error”,“error_description”:“Script generated an unhandled asynchronous exception.”}%

as response…

What am I doing wrong or what is missing?

Check the Rules & Hooks.


1 Like

No worries! We’ve all been there!