apollo-client-devtools icon indicating copy to clipboard operation
apollo-client-devtools copied to clipboard

Server side mutation errors are not reported in the explorer

Open neochrome opened this issue 1 year ago • 2 comments

Intended outcome:

Server side error when executing a mutation shows up in the result pane.

Actual outcome:

The execute button hangs forever and the error is reported as an uncaught in the main console log, nothing shows in the explorer result pane.

This seems to be limited only to Mutations, same works just fine for Queries. Also, using the Apollo Studio webapp works correctly for both Queries & Mutations.

How to reproduce the issue:

  1. Open the explorer tab
  2. Execute a mutation that results in a server error

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Brave
  • Browser version: 1.61.109
  • Extension version 4.3.1

neochrome avatar Jan 02 '24 11:01 neochrome

Hey @neochrome 👋

Appreciate the issue! I've been thinking about this a bit lately too an definitely agree that we should do a better job of surfacing errors in operations. No guarantees on a timeline, but I think this makes a lot of sense 🙂

jerelmiller avatar Feb 07 '24 03:02 jerelmiller

Oops, sorry my eyes skipped over the part about the explorer pane, so ignore my last comment. We use a bit of a custom wrapper around the explorer that ends up using your actual Apollo Client instance to execute the query, so its possible things have changed that we may need to take a look at further. Appreciate you surfacing this!

jerelmiller avatar Feb 07 '24 03:02 jerelmiller