Page MenuHomePhabricator

Fix `paste.create` conduit method in the wake of edit engine support
Closed, ResolvedPublic

Description

I've got to assume that's the source of this?

$ grep -Rni "bug" * | arc paste --title "Location of all bugs"
libphutil loaded from '/home/builderc/integrator/phacility/libphutil/src'.
arcanist loaded from '/home/builderc/integrator/phacility/arcanist/src'.
Config: Reading user configuration file "/home/builderc/.arcrc"...
Config: Reading system configuration file "/etc/arcconfig"...
Working Copy: Reading .arcconfig from "/home/builderc/janitorial-services/.arcconfig".
Working Copy: Path "/home/builderc/janitorial-services" is part of `git` working copy "/home/builderc/janitorial-services".
Working Copy: Project root is at "/home/builderc/janitorial-services".
Config: Did not find local configuration at "/home/builderc/janitorial-services/.git/arc/config".
Loading phutil library from '/home/builderc/integrator/client/source'...
Loading phutil library from '/home/builderc/janitorial-services/source'...
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> http://secret/api/user.whoami
<<< [1] <http> 88,288 us
<<< [0] <conduit> 88,762 us
>>> [2] <conduit> paste.create() <bytes = 193>
>>> [3] <http> http://secret/api/paste.create
<<< [3] <http> 86,285 us
<<< [2] <conduit> 86,621 us

[2015-11-08 05:26:56] EXCEPTION: (HTTPFutureHTTPResponseStatus) [HTTP/500] Internal Server Error
{"result":null,"error_code":"ERR-CONDUIT-CORE","error_info":"Transactions have no effect:\n  - Transaction has no effect."} at [<phutil>/src/future/http/BaseHTTPFuture.php:339]
arcanist(custom=1), integrator-client(), janitorial-services(head=master, ref.master=2fe40487b1b3), phutil()
  #0 BaseHTTPFuture::parseRawHTTPResponse(string) called at [<phutil>/src/future/http/HTTPSFuture.php:415]
  #1 HTTPSFuture::isReady() called at [<phutil>/src/future/Future.php:37]
  #2 Future::resolve(NULL) called at [<phutil>/src/future/FutureProxy.php:34]
  #3 FutureProxy::resolve() called at [<phutil>/src/conduit/ConduitClient.php:58]
  #4 ConduitClient::callMethodSynchronous(string, array) called at [<arcanist>/src/workflow/ArcanistPasteWorkflow.php:135]
  #5 ArcanistPasteWorkflow::createPaste() called at [<arcanist>/src/workflow/ArcanistPasteWorkflow.php:94]
  #6 ArcanistPasteWorkflow::run() called at [<arcanist>/scripts/arcanist.php:382]

You can repro this just by typing "test" into the conduit console and trying to call the method. I wouldn't be surprised if you already knew about this.