Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch payload in AsyncTask #72

Merged

Conversation

redwarp
Copy link
Collaborator

@redwarp redwarp commented Aug 2, 2019

To avoid the formating of json or xml stalling the UI, the payload will be loaded and formatted in an async task instead.
Fixes #55

Copy link
Member

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me. I'm preparing a Charles rule to test it.
Anyway, Can I ask you to rebase on top of develop @redwarp as #67 will conflict with your change.

@cortinico
Copy link
Member

You can use this Charles rewrite rule:
BigGetResponse.xml.zip

Plus you need to remove SSL to let it work properly here:

Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://httpbin.org")

Benoit Vermont added 3 commits August 7, 2019 12:58
To avoid the formating of json or xml stalling the UI, the payload will be loaded and formatted in an async task instead.
Fixes ChuckerTeam#55
@redwarp redwarp force-pushed the fetch_payload_data_in_async_task branch from 7c85675 to 141d730 Compare August 7, 2019 11:18
@cortinico cortinico added the bug Something isn't working label Aug 7, 2019
@cortinico cortinico added this to the 3.0.0 milestone Aug 7, 2019
@redwarp
Copy link
Collaborator Author

redwarp commented Aug 7, 2019

Verified with a big query that it actually solves the issue.

Copy link
Member

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚢 Just a minor change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chucker is crashing opening responses with big bodies
2 participants