Fatal Exception: NSInternalInconsistencyException This request has been castrated - you cannot call -sendResponse: twice or after encoding it

I looked through posts from others that seem to have a similar problem and they do not match the situation. None of the published solutions was a problem that I think has.

I get this exception in my Crashlytics log since iOS 8. I looked at my background fetch handler and other developers see it as a health check. It doesn't seem like I'm calling completeHandler more than once to call a background fetch.

As a precaution, I set a boolean value so that the code might be repetitive, and this did not seem to change anything - not what I thought it would be.

I was unsuccessful in trying to recreate this problem on my devices or in the simulator.

Any help would be appreciated!

+5
source share

Source: https://habr.com/ru/post/1206600/


All Articles