[GH-ISSUE #429] Request is not displayed #425

Closed
opened 2026-03-03 19:18:40 +03:00 by kerem · 6 comments
Owner

Originally created by @yauheniprakapenka on GitHub (Mar 7, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/429

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman 1.17.1
mac 10.15.3

Steps to reproduce

  1. Download my project
    https://drive.google.com/file/d/1F4uAaCiQEcE_WEv8aC2sNagrszhB9Zg-/view?usp=sharing

  2. Run app with uncommented
    let urlString = "https://rickandmortyapi.com/api/character/"

Expected behavior

Proxyman displays rick morty request

For example, with mail.ru it works.

Video

https://drive.google.com/file/d/1LpTS4fdUZ_LE6y27KATF3CgW6IW3YUSC/view?usp=sharing

Originally created by @yauheniprakapenka on GitHub (Mar 7, 2020). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/429 Originally assigned to: @NghiaTranUIT on GitHub. Proxyman 1.17.1 mac 10.15.3 ### Steps to reproduce 1. Download my project https://drive.google.com/file/d/1F4uAaCiQEcE_WEv8aC2sNagrszhB9Zg-/view?usp=sharing 2. Run app with uncommented **let urlString = "https://rickandmortyapi.com/api/character/"** ### Expected behavior Proxyman displays rick morty request For example, with mail.ru it works. ### Video https://drive.google.com/file/d/1LpTS4fdUZ_LE6y27KATF3CgW6IW3YUSC/view?usp=sharing
kerem 2026-03-03 19:18:40 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Mar 8, 2020):

Let me investigate bug, look like Proxyman couldn't parse the data properly.

<!-- gh-comment-id:596171366 --> @NghiaTranUIT commented on GitHub (Mar 8, 2020): Let me investigate bug, look like Proxyman couldn't parse the data properly.
Author
Owner

@NghiaTranUIT commented on GitHub (Mar 8, 2020):

Turn out that URLSession automatically caches the response -> Doesn't make a real request -> Doesn't appear on Proxyman. (https://stackoverflow.com/questions/24328461/how-to-disable-caching-from-nsurlsessiontask)

Let check out this code, I disable a caching from URLSession, and the requests are appeared on Proxyman.

        let config = URLSessionConfiguration.default
        config.requestCachePolicy = .reloadIgnoringLocalCacheData
        config.urlCache = nil
        let session = URLSession(configuration: config)

        session.dataTask(with: url) { (data, response, error) in

            if let error = error { print(error); return }
            guard let data = data else { return }
            
            do {
                let character = try JSONDecoder().decode(Character.self, from: data)
                completion(character)
            } catch let error {
                print(error)
            }
        }.resume()
Screen Shot 2020-03-08 at 13 36 56

Additionally, if you would to get the latest response, please consider to use No Caching Tool (Option+Command+N)

<!-- gh-comment-id:596172850 --> @NghiaTranUIT commented on GitHub (Mar 8, 2020): Turn out that URLSession automatically **caches** the response -> Doesn't make a real request -> Doesn't appear on Proxyman. (https://stackoverflow.com/questions/24328461/how-to-disable-caching-from-nsurlsessiontask) Let check out this code, I disable a caching from URLSession, and the requests are appeared on Proxyman. ```swift let config = URLSessionConfiguration.default config.requestCachePolicy = .reloadIgnoringLocalCacheData config.urlCache = nil let session = URLSession(configuration: config) session.dataTask(with: url) { (data, response, error) in if let error = error { print(error); return } guard let data = data else { return } do { let character = try JSONDecoder().decode(Character.self, from: data) completion(character) } catch let error { print(error) } }.resume() ``` <img width="1856" alt="Screen Shot 2020-03-08 at 13 36 56" src="https://user-images.githubusercontent.com/5878421/76157909-54ffaf80-6142-11ea-8568-134f4a46dfe9.png"> ------------------- Additionally, if you would to get the latest response, please consider to use No Caching Tool (Option+Command+N)
Author
Owner

@yauheniprakapenka commented on GitHub (Mar 8, 2020):

Sorry to bother you!

One more question. When I launch the application, I want the sorting from the last time to be always remembered. In the settings did not find saving sorting.

<!-- gh-comment-id:596173362 --> @yauheniprakapenka commented on GitHub (Mar 8, 2020): Sorry to bother you! One more question. When I launch the application, I want the sorting from the last time to be always remembered. In the settings did not find saving sorting.
Author
Owner

@NghiaTranUIT commented on GitHub (Mar 8, 2020):

At the moment, the Sorting state isn't persisted. I will support this feature now 👍

<!-- gh-comment-id:596173636 --> @NghiaTranUIT commented on GitHub (Mar 8, 2020): At the moment, the Sorting state isn't persisted. I will support this feature now 👍
Author
Owner

@yauheniprakapenka commented on GitHub (Mar 8, 2020):

You are the best! I love Proxyman with all my heart

<!-- gh-comment-id:596173925 --> @yauheniprakapenka commented on GitHub (Mar 8, 2020): You are the best! I love Proxyman with all my heart
Author
Owner

@NghiaTranUIT commented on GitHub (Mar 8, 2020):

Let check out the build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_1.17.1_Sorting.dmg 👍

Ticket https://github.com/ProxymanApp/Proxyman/issues/430

<!-- gh-comment-id:596178352 --> @NghiaTranUIT commented on GitHub (Mar 8, 2020): Let check out the build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_1.17.1_Sorting.dmg 👍 Ticket https://github.com/ProxymanApp/Proxyman/issues/430
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/Proxyman#425
No description provided.