{"action":"created","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/761","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/761/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/761/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/761/events","html_url":"https://github.com/cypress-io/cypress/issues/761","id":266440913,"node_id":"MDU6SXNzdWUyNjY0NDA5MTM=","number":761,"title":"Problem cancelling XHRs from previous test","user":{"login":"AshMcConnell","id":497941,"node_id":"MDQ6VXNlcjQ5Nzk0MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/497941?v=4","gravatar_id":"","url":"https://api.github.com/users/AshMcConnell","html_url":"https://github.com/AshMcConnell","followers_url":"https://api.github.com/users/AshMcConnell/followers","following_url":"https://api.github.com/users/AshMcConnell/following{/other_user}","gists_url":"https://api.github.com/users/AshMcConnell/gists{/gist_id}","starred_url":"https://api.github.com/users/AshMcConnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AshMcConnell/subscriptions","organizations_url":"https://api.github.com/users/AshMcConnell/orgs","repos_url":"https://api.github.com/users/AshMcConnell/repos","events_url":"https://api.github.com/users/AshMcConnell/events{/privacy}","received_events_url":"https://api.github.com/users/AshMcConnell/received_events","type":"User","site_admin":false},"labels":[{"id":1153346751,"node_id":"MDU6TGFiZWwxMTUzMzQ2NzUx","url":"https://api.github.com/repos/cypress-io/cypress/labels/difficulty:%202%EF%B8%8F%E2%83%A3","name":"difficulty: 2️⃣","color":"ffffff","default":false},{"id":1111926215,"node_id":"MDU6TGFiZWwxMTExOTI2MjE1","url":"https://api.github.com/repos/cypress-io/cypress/labels/priority:%20medium%20%F0%9F%94%B8","name":"priority: medium 🔸","color":"eae23f","default":false},{"id":182981366,"node_id":"MDU6TGFiZWwxODI5ODEzNjY=","url":"https://api.github.com/repos/cypress-io/cypress/labels/type:%20bug","name":"type: bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":{"login":"brian-mann","id":1268976,"node_id":"MDQ6VXNlcjEyNjg5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/1268976?v=4","gravatar_id":"","url":"https://api.github.com/users/brian-mann","html_url":"https://github.com/brian-mann","followers_url":"https://api.github.com/users/brian-mann/followers","following_url":"https://api.github.com/users/brian-mann/following{/other_user}","gists_url":"https://api.github.com/users/brian-mann/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-mann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-mann/subscriptions","organizations_url":"https://api.github.com/users/brian-mann/orgs","repos_url":"https://api.github.com/users/brian-mann/repos","events_url":"https://api.github.com/users/brian-mann/events{/privacy}","received_events_url":"https://api.github.com/users/brian-mann/received_events","type":"User","site_admin":false},"assignees":[{"login":"brian-mann","id":1268976,"node_id":"MDQ6VXNlcjEyNjg5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/1268976?v=4","gravatar_id":"","url":"https://api.github.com/users/brian-mann","html_url":"https://github.com/brian-mann","followers_url":"https://api.github.com/users/brian-mann/followers","following_url":"https://api.github.com/users/brian-mann/following{/other_user}","gists_url":"https://api.github.com/users/brian-mann/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-mann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-mann/subscriptions","organizations_url":"https://api.github.com/users/brian-mann/orgs","repos_url":"https://api.github.com/users/brian-mann/repos","events_url":"https://api.github.com/users/brian-mann/events{/privacy}","received_events_url":"https://api.github.com/users/brian-mann/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/cypress-io/cypress/milestones/98","html_url":"https://github.com/cypress-io/cypress/milestone/98","labels_url":"https://api.github.com/repos/cypress-io/cypress/milestones/98/labels","id":3907363,"node_id":"MDk6TWlsZXN0b25lMzkwNzM2Mw==","number":98,"title":"Sprint 16","description":"","creator":{"login":"jennifer-shehane","id":1271364,"node_id":"MDQ6VXNlcjEyNzEzNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1271364?v=4","gravatar_id":"","url":"https://api.github.com/users/jennifer-shehane","html_url":"https://github.com/jennifer-shehane","followers_url":"https://api.github.com/users/jennifer-shehane/followers","following_url":"https://api.github.com/users/jennifer-shehane/following{/other_user}","gists_url":"https://api.github.com/users/jennifer-shehane/gists{/gist_id}","starred_url":"https://api.github.com/users/jennifer-shehane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennifer-shehane/subscriptions","organizations_url":"https://api.github.com/users/jennifer-shehane/orgs","repos_url":"https://api.github.com/users/jennifer-shehane/repos","events_url":"https://api.github.com/users/jennifer-shehane/events{/privacy}","received_events_url":"https://api.github.com/users/jennifer-shehane/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":2,"state":"open","created_at":"2018-12-17T16:01:23Z","updated_at":"2019-01-02T15:57:26Z","due_on":"2018-12-23T08:00:00Z","closed_at":null},"comments":59,"created_at":"2017-10-18T10:26:21Z","updated_at":"2019-01-03T10:51:34Z","closed_at":"2018-12-19T23:33:07Z","author_association":"NONE","body":"<!-- Want a bug fixed quickly? Please provide a repository to reproduce the issue. -->\r\n\r\n- Operating System: Ubuntu 16.04\r\n- Cypress Version: 1.0.2\r\n- Browser Version: Electron 53\r\n\r\n### Is this a Feature or Bug?\r\n\r\nBug\r\n\r\n### Current behavior:\r\nYep, there is an issue if you don't wait for all XHRs to finish after a test.  When it tries to cancel the XHR it fails with the error: - \r\n```\r\nUnsubscriptionError: 1 errors occurred during unsubscription:\r\n  1) TypeError: Cannot set property 'aborted' of undefined\r\n```\r\nif I do an explicit `cy.wait(2000)` or `cy.wait('@myxhr')` it works\r\n*note* it's the following test that fails, not the one with the XHR\r\n\r\n### Desired behavior:\r\n\r\nThe XHR should be cancelled correctly before the next test starts\r\n\r\n### How to reproduce:\r\n\r\nHave a longish running XHR fire at the end of one test and have a subsequent test.\r\n\r\n### Additional Info (images, stack traces, etc)\r\n\r\nIt seems to happen when I am faking a route failure (status 500) and then make another (non-faked) XHR (to report the error to a server).  e.g.: -\r\n\r\n```js\r\ncy.route({\r\n          method: 'PUT',\r\n          url: '/Endpoint/Id',\r\n          status: 500,\r\n          response: ''\r\n}).as('saveStuff');\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/comments/451110369","html_url":"https://github.com/cypress-io/cypress/issues/761#issuecomment-451110369","issue_url":"https://api.github.com/repos/cypress-io/cypress/issues/761","id":451110369,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTExMDM2OQ==","user":{"login":"jennifer-shehane","id":1271364,"node_id":"MDQ6VXNlcjEyNzEzNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1271364?v=4","gravatar_id":"","url":"https://api.github.com/users/jennifer-shehane","html_url":"https://github.com/jennifer-shehane","followers_url":"https://api.github.com/users/jennifer-shehane/followers","following_url":"https://api.github.com/users/jennifer-shehane/following{/other_user}","gists_url":"https://api.github.com/users/jennifer-shehane/gists{/gist_id}","starred_url":"https://api.github.com/users/jennifer-shehane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennifer-shehane/subscriptions","organizations_url":"https://api.github.com/users/jennifer-shehane/orgs","repos_url":"https://api.github.com/users/jennifer-shehane/repos","events_url":"https://api.github.com/users/jennifer-shehane/events{/privacy}","received_events_url":"https://api.github.com/users/jennifer-shehane/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T10:51:34Z","updated_at":"2019-01-03T10:51:34Z","author_association":"MEMBER","body":"Hey @tomaass, this is a bug introduced in 3.1.4 - documented here: https://github.com/cypress-io/cypress/issues/3008"}}
{"actor":{"display_login":"jennifer-shehane"}}