Throw ERR-CONDUIT-CALL for non-existing methods with >64 characters
Summary:
Phorge shows a cryptic `AphrontQueryException #1406: Data too long for column 'method'` error when trying to access a non-existing Conduit API method with more than 64 characters, like `http://phorge.localhost/api/whateverwhateverwhateverwhateverwhateverwhateverwhateverwhateverwhateverwhatever`.
The failure in logging the call (`PhabricatorConduitMethodCallLog` defines `'method' => 'text64'`) is thrown before reaching the code to show the expected error `Conduit API method does not exist.`
Thus truncate the method name to 64 characters (the method call will fail anyway at this stage, no matter which invalid method name was used) to still be able to log the attempt && fail with a useful error message.
Closes T16146
Test Plan:
* Go to http://phorge.localhost/api/whateverwhateverwhateverwhateverwhateverwhateverwhateverwhateverwhateverwhatever
* Get a proper `ERR-CONDUIT-CALL` instead of a confusing `(AphrontQueryException) #1406: Data too long for column 'method' at row 1`
* Look at http://phorge.localhost/conduit/log/query/all/, the failed call is still logged
Reviewers: O1 Blessed Committers, mainframe98
Reviewed By: O1 Blessed Committers, mainframe98
Subscribers: mainframe98, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Maniphest Tasks: T16146
Differential Revision: https://we.phorge.it/D26130