{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/relay/issues/1200","repository_url":"https://api.github.com/repos/facebook/relay","labels_url":"https://api.github.com/repos/facebook/relay/issues/1200/labels{/name}","comments_url":"https://api.github.com/repos/facebook/relay/issues/1200/comments","events_url":"https://api.github.com/repos/facebook/relay/issues/1200/events","html_url":"https://github.com/facebook/relay/issues/1200","id":158840887,"number":1200,"title":"Error: RelayMutationQueue: `0` is not a valid pending transaction ID.","user":{"login":"aihornmac","id":7410810,"avatar_url":"https://avatars.githubusercontent.com/u/7410810?v=3","gravatar_id":"","url":"https://api.github.com/users/aihornmac","html_url":"https://github.com/aihornmac","followers_url":"https://api.github.com/users/aihornmac/followers","following_url":"https://api.github.com/users/aihornmac/following{/other_user}","gists_url":"https://api.github.com/users/aihornmac/gists{/gist_id}","starred_url":"https://api.github.com/users/aihornmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aihornmac/subscriptions","organizations_url":"https://api.github.com/users/aihornmac/orgs","repos_url":"https://api.github.com/users/aihornmac/repos","events_url":"https://api.github.com/users/aihornmac/events{/privacy}","received_events_url":"https://api.github.com/users/aihornmac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-07T05:22:12Z","updated_at":"2016-06-07T19:11:38Z","closed_at":"2016-06-07T19:11:38Z","body":"I have this login case\r\n\r\n```\r\nlet result;\r\ntry {\r\n  result = await relayCommitUpdate(this.context.relay, LoginMutation, {\r\n    email, password\r\n  });\r\n} catch (trans) {\r\n  let error = trans.getError();\r\n  this.props.setLoginError(error);\r\n}\r\n```\r\n\r\nWhen login succeeds, everything is okay. However, when GraphQL server responds with an error (i.e. user not found), this error shows.\r\n```\r\nError: RelayMutationQueue: `0` is not a valid pending transaction ID.\r\n```\r\n\r\nbtw, the response body is\r\n```\r\n{\r\n  \"data\": {\r\n    \"login\": null\r\n  },\r\n  \"errors\": [\r\n    {\r\n      \"message\": \"user not found\",\r\n      \"locations\": [\r\n        {\r\n          \"line\": 2,\r\n          \"column\": 3\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nWhy is this happening?"}}
{"actor":{"display_login":"aihornmac"}}