[GH-ISSUE #135] Xcode 15: The request of a upload task should not contain a body or a body stream #85

Closed
opened 2026-03-03 19:11:40 +03:00 by kerem · 9 comments
Owner

Originally created by @brandonskane on GitHub (Aug 22, 2023).
Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/135

Originally assigned to: @NghiaTranUIT on GitHub.

Xcode 15 gives the below warning when running Atlantis, line 325 in _swizzleURLSessionUploadFromDataWithCompleteHandlerSelector

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.

CleanShot 2023-08-22 at 16 27 03@2x
Originally created by @brandonskane on GitHub (Aug 22, 2023). Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/135 Originally assigned to: @NghiaTranUIT on GitHub. Xcode 15 gives the below warning when running Atlantis, line 325 in `_swizzleURLSessionUploadFromDataWithCompleteHandlerSelector` ```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.``` <img width="1475" alt="CleanShot 2023-08-22 at 16 27 03@2x" src="https://github.com/ProxymanApp/atlantis/assets/375155/991b4521-81ac-4d99-813f-12862d6537b8">
kerem closed this issue 2026-03-03 19:11:40 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Aug 23, 2023):

Thanks. Let me investigate it with Xcode 15 Beta

<!-- gh-comment-id:1689259196 --> @NghiaTranUIT commented on GitHub (Aug 23, 2023): Thanks. Let me investigate it with Xcode 15 Beta
Author
Owner

@NghiaTranUIT commented on GitHub (Aug 23, 2023):

I'm unable to reproduce this issue:

  • Xcode 15 Beta 7
  • iOS 17 Beta
  • Use URLSession.shared.uploadTask(with: request, from: data)
  • the latest Atlantis version.

and I don't get the warning.

CleanShot 2023-08-23 at 15 00 54@2x


Just wondering:

  1. What iOS version you're using with Xcode 15?
  2. When you get the warning, can you help me to trace back (by setting the Breakpoint) what the URLSession's method is called?

thanks in advance 👍

<!-- gh-comment-id:1689484458 --> @NghiaTranUIT commented on GitHub (Aug 23, 2023): I'm unable to reproduce this issue: - Xcode 15 Beta 7 - iOS 17 Beta - Use `URLSession.shared.uploadTask(with: request, from: data)` - the latest Atlantis version. and I don't get the warning. ![CleanShot 2023-08-23 at 15 00 54@2x](https://github.com/ProxymanApp/atlantis/assets/5878421/81834c3b-7910-44d2-9207-b87f1a5d07f4) ---------- Just wondering: 1. What iOS version you're using with Xcode 15? 2. When you get the warning, can you help me to trace back (by setting the Breakpoint) what the URLSession's method is called? thanks in advance 👍
Author
Owner

@yjdv commented on GitHub (Sep 18, 2023):

I've got the same issue with lates Xcode 15 RC and Atlantis installed as SPM

<!-- gh-comment-id:1724314406 --> @yjdv commented on GitHub (Sep 18, 2023): I've got the same issue with lates Xcode 15 RC and Atlantis installed as SPM
Author
Owner

@brandonskane commented on GitHub (Sep 18, 2023):

I've tracked it down to NewRelic. When I disable NewRelic from starting, I do not get this error.

So Xcode 15 + NewRelic + Atlantis causes this to appear.

I'm using Xcode 15 final release (15A240d)

Your original stack trace request
CleanShot 2023-09-18 at 16 27 37@2x

<!-- gh-comment-id:1724325915 --> @brandonskane commented on GitHub (Sep 18, 2023): I've tracked it down to NewRelic. When I disable NewRelic from starting, I do not get this error. So Xcode 15 + NewRelic + Atlantis causes this to appear. I'm using Xcode 15 final release (15A240d) Your original stack trace request ![CleanShot 2023-09-18 at 16 27 37@2x](https://github.com/ProxymanApp/atlantis/assets/375155/d6a6776c-112f-465b-b450-71a48d94d52e)
Author
Owner

@yjdv commented on GitHub (Sep 18, 2023):

that should be the case I've got new relic too in the project but I can't disable it

<!-- gh-comment-id:1724339799 --> @yjdv commented on GitHub (Sep 18, 2023): that should be the case I've got new relic too in the project but I can't disable it
Author
Owner

@brandonskane commented on GitHub (Sep 18, 2023):

that should be the case I've got new relic too in the project but I can't disable it

I cannot disable it either, however, in Production since one would not have Atlantis enabled, this is less of a concern, at least to me. It would still be nice to not have this warning during development.

<!-- gh-comment-id:1724342849 --> @brandonskane commented on GitHub (Sep 18, 2023): > that should be the case I've got new relic too in the project but I can't disable it I cannot _disable_ it either, however, in Production since one would not have Atlantis enabled, this is less of a concern, at least to me. It would still be nice to not have this warning during development.
Author
Owner

@yjdv commented on GitHub (Sep 18, 2023):

yeah agree on that. it could stay open but with less priority @NghiaTranUIT

<!-- gh-comment-id:1724346582 --> @yjdv commented on GitHub (Sep 18, 2023): yeah agree on that. it could stay open but with less priority @NghiaTranUIT
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 19, 2023):

Thanks. Let me investigate Atlantis and New Relic 👍

<!-- gh-comment-id:1724696130 --> @NghiaTranUIT commented on GitHub (Sep 19, 2023): Thanks. Let me investigate Atlantis and New Relic 👍
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 19, 2023):

@yjdv @brandonskane it seems this warning is not from Atlantis. It's from the NewRelic (See the screenshot)

How to reproduce

  1. Setup Xcode 15 + iOS 16
  2. Create new empty iOS project
  3. Add New Relic library -> Get the same warning even though there is no Atlantis framework here.

CleanShot 2023-09-19 at 10 38 50@2x

<!-- gh-comment-id:1724788372 --> @NghiaTranUIT commented on GitHub (Sep 19, 2023): @yjdv @brandonskane it seems this warning is not from Atlantis. It's from the NewRelic (See the screenshot) ### How to reproduce 1. Setup Xcode 15 + iOS 16 2. Create new empty iOS project 3. Add New Relic library -> Get the same warning even though there is no Atlantis framework here. ![CleanShot 2023-09-19 at 10 38 50@2x](https://github.com/ProxymanApp/atlantis/assets/5878421/e209e9bc-a45a-43f5-b7f9-33d6c596b668)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/atlantis#85
No description provided.