optimizely / swift-sdk

Swift SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy)
https://www.optimizely.com/products/full-stack/
Apache License 2.0
21 stars 30 forks source link

[BUG] Upload Task Request contains Body #519

Closed michaeldclifford closed 8 months ago

michaeldclifford commented 10 months ago

Is there an existing issue for this?

SDK Version

3.10.2

iOS Version

17.0

Current Behavior

When running an App with the Optimizely SDK integrated, the following error message is shown in Xcode 15:

The request of a upload task should not contain a body or a body stream, use upload(for:fromFile:), upload(for:from:), or supply the body stream through the urlSession(_:needNewBodyStreamForTask:) delegate method. DefaultEventDispatcher.swift > L184-L192

Expected Behavior

The SDK should not have any runtime issues flagged by Xcode

Steps To Reproduce

Run an App that has the Optimizely SDK integrated and calls sendEvent(event: EventForDispatch, completionHandler: @escaping DispatchCompletionHandler)

Link

sendEvent(event: EventForDispatch, completionHandler: @escaping DispatchCompletionHandler)

Logs / Stacktraces

- DefaultEventDispatcher.flushEvents(), L151
  - self.sendEvent(event:completionHandler:), L192

Severity

No response

Workaround/Solution

No response

Recent Change

No response

Conflicts

No response

muzahidul-opti commented 10 months ago

acknowledged

muzahidul-opti commented 8 months ago

Hi @michaeldclifford, thank you for your patience. The issue has been resolved. Please check out our latest release.