pluto icon indicating copy to clipboard operation
pluto copied to clipboard

Header info is not visible in request or curl

Open mohitsvnit opened this issue 4 years ago • 10 comments

Describe the bug Headers info is not visible in request as well as not getting added in curl request share or file share.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Pluto Network tab'
  2. Click on 'any request'
  3. See 'headers info'

Expected behavior All headers should be visible on the debugger screen as well as in curl

Smartphone (please complete the following information):

  • Device: Poco X3 Pro
  • OS: Android 11
  • Library Version 1.0.6

mohitsvnit avatar Sep 20 '21 07:09 mohitsvnit

hi @mohitsvnit please share the actual CURL and screenshot of Request tab for the above API

srtvprateek avatar Sep 20 '21 12:09 srtvprateek

@srtvprateek it is happening for all the requests in our app. I will share the dummy API request and screenshot.

mohitsvnit avatar Oct 04 '21 07:10 mohitsvnit

Hi @srtvprateek any fix for this ?

vaibhav-sharechat avatar Oct 27 '21 19:10 vaibhav-sharechat

hey @vaibhav-sharechat , can you help me with couple of information

  • curl request
  • screenshot of the request tab for the above api

srtvprateek avatar Oct 28 '21 04:10 srtvprateek

@srtvprateek Screenshot_2021-10-28-11-00-41-174_in mohalla sharechat You can check the tab here. I can't provide the curl as it's a proprietary curl, but I can assure that we send 4-5 headers in every call which are not shown here. Also if we share the request they are not added into the curl but from network they are going to our backend

vaibhav-sharechat avatar Oct 28 '21 06:10 vaibhav-sharechat

understood, let me check

srtvprateek avatar Oct 28 '21 07:10 srtvprateek

Stale issue

github-actions[bot] avatar Jan 01 '22 00:01 github-actions[bot]

@vaibhav-sharechat is the issue still persists?

srtvprateek avatar Jul 20 '23 06:07 srtvprateek

  1. Is the Auth interceptor added as a NetworkInterceptor? If yes, can you also add pluto as a NetworkInterceptor using addNetworkInterceptor instead of addInterceptor?

edit - Although adding pluto as a network interceptor might cause issues with the response you see.

  1. What is the current order in which you have added the interceptors? Can you try adding the pluto interceptor after you add your auth interceptor?

epicadk avatar Jul 22 '23 14:07 epicadk