apollo-ios: No data found for task x, cannot append received data

One of our tests hitting assert in URLSessionClient.swift:230 in on CI after updating to latest version (0.31.0). It’s not networking stack test so don’t think we doing anything specific to hit that assert. Looking at code that would indicate some kind race condition…

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (16 by maintainers)

Most upvoted comments

Yes this was exacly what i did - i triggered breakpoint or actually assertion triggers and state was == 2 so it was cancelled - thats why i wrote about this in last comment.

Ah sorry yes i was using older version, i update and problem resolved thanks

Haha damn it, looks like there’s a key piece of info about invalidateAndCancel that’s only in the docs docs and not in the headerdoc:

Screen Shot 2020-09-08 at 1 58 23 PM