GraphQL\\Language\\Source::__construct(): Argument #1 ($body) must be of type string, null given, called in /var/www/poduptime/vendor/webonyx/graphql-php/src/GraphQL.php on line 139
fediverse.party has a Python script to update statistics on various pages. This script relies on fediverse.observer's API, and worked fine until at least December 3rd, 2023, but now it doesn't. Needless to say, the script itself didn't change in the meantime.
In response to the following GraphQL:
{ nodes(status: "UP", softwarename: "hometown") { total_users, active_users_halfyear } }
the script gets:
{'error': {'message': 'GraphQL\\Language\\Source::__construct(): Argument #1 ($body) must be of type string, null given, called in /var/www/poduptime/vendor/webonyx/graphql-php/src/GraphQL.php on line 139'}}
When copied into the api.fediverse.observer in the browser, the same query works fine. Do you have any ideas why that might be? Perhaps the script needs to send some header?