I am creating some scripts to work with the GraphQL api and when I am going to reload the changes I am running this mutation { doreload(input: {}) { message status transaction_id } }
but I get the response
{
"errors": [
{
"message": "Internal server error",
"status": false
}
]
}
I have no idea what the problem could be as I have the scope for the API defined to include the framework module. Any guidance would e greatly appreciated
mbrooks
(Matt Brooks)
February 18, 2022, 9:49pm
2
You can check the FreePBX debug log to see if anything shows up in there:
fwconsole dbug
Here is the error from the debug console
==> /var/log/asterisk/freepbx_dbug <==
[2022-02-19 18:47:34] [dbug.DEBUG]: 2022-Feb-19 18:47:34 /var/www/html/admin/modules/api/Gql/Api.php:100
[] []
[2022-02-19 18:47:34] [dbug.DEBUG]: stdClass Object
(
[debugMessage] => SQLSTATE[HY000]: General error: 1364 Field 'failure_reason' doesn't have a default value
[message] => Internal server error
[extensions] => stdClass Object
(
[category] => internal
)
[locations] => Array
(
[0] => stdClass Object
(
[line] => 2
[column] => 3
)
)
[path] => Array
(
[0] => doreload
)
)
[] []
mbrooks
(Matt Brooks)
February 22, 2022, 3:19am
5
Looks like you found a bug. I’ve created a ticket in jira:
https://issues.freepbx.org/browse/FREEPBX-23338
system
(system)
Closed
March 25, 2022, 3:19am
6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.