I'm developing the Wikimaps Warper (http://warper.wmflabs.org/) locally which uses the API with authenticated calls via OAuth and locally the code communicates with commons.wikimedia.beta.wmflabs.org The application is getting a 500 status from GET and POST requests to the API called via OAuth.
I'm also seeing the same error response using the Ruby OAuth library and crafting the request, authentication etc manually in the command line.
I'm also seeing the same error using https://tools.wmflabs.org/oauth-hello-world/beta.php which talks to deployment.wikimedia.beta.wmflabs.org
The "Post to your talk page" link should write "Hello World" to the users talk page. It has worked in the past: http://deployment.wikimedia.beta.wmflabs.org/wiki/User:Chippyy
Authenticating the user succeeds via OAuth, and getting user details via the JWT token also succeeds with no errors.
One example of the request that I'm trying is a GET request http://commons.wikimedia.beta.wmflabs.org/w/ap
and the hello-world request is a POST request seen in the code: https://tools.wmflabs.org/oauth-hello-world/beta.php?action=download
The error in the response body is:
PHP fatal error: <br/> Argument 3 to hash_hmac() must be of type ?string, bool given
I imagine this may be related to https://phabricator.wikimedia.org/T126316 "Catchable fatal error: Argument 3 to hash_hmac() must be of type ?string, bool given in /srv/mediawiki/php-master/includes/utils/MWCryptHash.php on line 108" related to the beta cluster and on which task I added a comment yesterday but I thought I would create a new one for this issue as it seems more specific.
many thanks in advance,
(p.s. I hope that I've added the correct tags to the project, I couldn't find one that just dealt with things on beta servers)