MuShare / Httper-iOS

App for developers to test REST API.

Home Page:https://httper.mushare.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretty response output fails with larger data sets

orinokai opened this issue · comments

This app is great. I'm finding it very user-friendly and full-featured. Great that it's open source too!

However, I am having an issue with responses that return larger sets of data. The app takes a long time to process the result and in some cases it fails and the 'Pretty' tab is empty.

For example, the following GET requests return 10, 100 and 500 results respectively:

https://jsonplaceholder.typicode.com/users
https://jsonplaceholder.typicode.com/posts
https://jsonplaceholder.typicode.com/comments

If you try this in the app you should see that /users works fine, /posts takes a long time and /comments fails to populate the 'Pretty' tab.

I would love to help, but I'm not familiar with Swift, unfortunately.

Thank you for your reply!
The problem you said about /posts and /comments may caused by the algorithm to format the response JSON string. I did not found a better open source algorithm by Swift language, so I have to implement it by myself. It may contains some problems, I will try to solve it.
Best wishes to you.

Solves in this PR #21

App Store version 2.3 has been updated.
Close this issue.