GraphQL API Not Responding

We have built out functionality using the new GraphQL API, then over the weekend we did a reboot and backup on our system and after it came back up GraphQL stopped responding, even from the web interface. We were then running FreePBX 15, so we decided that maybe upgrading to the latest would fix it, however it did not. We are now fully upgraded to the latest FreePBX 16 (and we’re running FreePBX Distro) however the GQL will not respond. There are no related errors in any of the logs, I’m quite stumped.

I have also tried uninstalling, removing, and reinstalling the PBX API Module.

I did find this in the gql_api_error.log but seems unrelated:

2022-02-15 09:33:00 - stdClass Object
(
    [message] => Field "destinationConnection" of type "String" must not have a sub selection.
    [extensions] => stdClass Object
        (
            [category] => graphql
        )

    [locations] => Array
        (
            [0] => stdClass Object
                (
                    [line] => 20
                    [column] => 59
                )

        )


And the Chrome Console

401 Status means “Unauthorized”, its likely you are either passing the authentication token incorrectly, or your authentication token has already expired. Try generating a new authentication token.

The web portal generates its own creds when you use it and if you see my second post you will see the getAccessToken end point is failing for the built in GQL browser, after not responding for multiple minutes.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.