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

body is empty in the Request Body even though the log shows the actual request body (see screenshot) #1171

Open
mochadwi opened this issue Jan 30, 2024 · 3 comments
Labels
feature request Request a new feature to be developed

Comments

@mochadwi
Copy link

mochadwi commented Jan 30, 2024

✍️ Describe the bug

Request Body shows body is empty in POST method with multipart/form-data

💣 Steps to reproduce

Go to chucker push notif dialog and click POST API, and see the Request tab. It shows body is empty instead.

🔧 Expected behavior

It should display the actual request body.

📷 Screenshots

Screen Shot 2024-01-30 at 5 53 03 PM
Screen Shot 2024-01-30 at 5 26 00 PM

REQUEST: <https URL>
                                                                                                    METHOD: HttpMethod(value=POST)
                                                                                                    COMMON HEADERS
                                                                                                    -> Accept: application/json
                                                                                                    -> Accept-Charset: UTF-8
                                                                                                    -> Authorization: Bearer 871|JJ12tnumAFwAhZcJW6TPP3XrC0XUfSL2LAk37CV3f11443ce
                                                                                                    -> Connection: close
                                                                                                    CONTENT HEADERS
                                                                                                    -> Content-Length: 242
                                                                                                    -> Content-Type: multipart/form-data; boundary=46ba70a15370f0b-53c81418d4885d8-4995e411-7b761d8e-785e637348a0e64d-4b0
                                                                                                    BODY Content-Type: multipart/form-data; boundary=46ba70a15370f0b-53c81418d4885d8-4995e411-7b761d8e-785e637348a0e64d-4b0
                                                                                                    BODY START
                                                                                                    --46ba70a15370f0b-53c81418d4885d8-4995e411-7b761d8e-785e637348a0e64d-4b0
                                                                                                    Content-Disposition: form-data; name=full_name
                                                                                                    Content-Length: 20
                                                                                                    
                                                                                                    test sp m+1 asdfasdf
                                                                                                    --46ba70a15370f0b-53c81418d4885d8-4995e411-7b761d8e-785e637348a0e64d-4b0--
                                                                                                    
                                                                                                    BODY END
2024-01-30 17:19:46.490  5843-5918  KtorHttpLogger          com.bwc.forlance                     I  RESPONSE: 200 OK
                                                                                                    METHOD: HttpMethod(value=POST)
                                                                                                    FROM: <https URL>
                                                                                                    COMMON HEADERS
                                                                                                    -> access-control-allow-headers: Content-Type, Authorization
                                                                                                    -> access-control-allow-methods: POST, GET, OPTIONS
                                                                                                    -> access-control-allow-origin: *
                                                                                                    -> cache-control: no-cache, private
                                                                                                    -> connection: close
                                                                                                    -> content-type: application/json
                                                                                                    -> date: Tue, 30 Jan 2024 10:19:46 GMT
                                                                                                    -> server: Apache/2.4.54 (Ubuntu)
                                                                                                    -> transfer-encoding: chunked
                                                                                                    -> vary: Authorization
                                                                                                    -> x-android-received-millis: 1706609986486
                                                                                                    -> x-android-response-source: NETWORK 200
                                                                                                    -> x-android-selected-protocol: http/1.1
                                                                                                    -> x-android-sent-millis: 1706609986236
                                                                                                    -> x-ratelimit-limit: 60
                                                                                                    -> x-ratelimit-remaining: 57
                                                                                                    BODY Content-Type: application/json
                                                                                                    BODY START
                                                                                                    {"status":"success","message":"Service provider profile updated successfully"}
                                                                                                    BODY END

📱 Tech info

  • Device: Google Pixel 4
  • OS: Android 11
  • Chucker version: 4.0.0

📄 Additional context

lmk if you need me to create a sample project, because this large project, it takes while to remove confidential things.

@mochadwi mochadwi changed the title 0 bytes in the Request Body even though the log shows the actual request body (see screenshot) body is empty in the Request Body even though the log shows the actual request body (see screenshot) Jan 30, 2024
@cortinico
Copy link
Member

I believe that's because we don't support multi-part requests:
#1171

@mochadwi
Copy link
Author

I believe that's because we don't support multi-part requests: #1171

I see that's explained everything, I thought that missing something in my part. Anything I can do to help or is it multipart support is already in the roadmap?

@cortinico
Copy link
Member

I thought that missing something in my part. Anything I can do to help or is it multipart support is already in the roadmap?

Ideally, if you want to investigate adding multi-part support and send a PR, that would be really welcome

@cortinico cortinico added the feature request Request a new feature to be developed label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature to be developed
Projects
None yet
Development

No branches or pull requests

2 participants