Hello,
I’m using Apollo 0.47.1 in Xcode 13 on my Simulator.
When I’m executing a query, I always get error : Attempting to create a new request after the session has been invalidated.
What’s the reason that might cause that error?
Thank you in advance.
Generally when we’ve seen that error, there’s something that’s not properly hanging on to the ApolloClient
instance, which will cause the URLSessionClient
to get released and in turn the URLSession
to become invalidated.
I’d recommend looking at how you’re creating and/or hanging onto your instance of ApolloClient
as a place to start.