reactotron icon indicating copy to clipboard operation
reactotron copied to clipboard

React Native - API Response 200 "skipped"

Open monkeyinsurgency opened this issue 6 years ago • 15 comments

Responses showing as "skipped" regardless of status. Response Headers, Request, and Request Headers all available, just not Response.

image

monkeyinsurgency avatar Nov 29 '18 10:11 monkeyinsurgency

I believe that when it says skipped that means it didn't get any body in the response. If you hit that endpoint in postman or similar do you get anything in the response body?

rmevans9 avatar Dec 02 '18 15:12 rmevans9

I had this "skipped" message when the service returned a plain text content while I expected JSON (even if response is empty). Maybe this is your case ?

chawax avatar Dec 03 '18 11:12 chawax

Yes, skipped means the response is empty. It's misleading. Took me awhile to figure out that it's not the actual response from the API...

pekq avatar Dec 04 '18 11:12 pekq

I'm definitely getting a response...

image

image

monkeyinsurgency avatar Dec 04 '18 11:12 monkeyinsurgency

Hmm... I personally haven't seen it show "skipped" when you get an actual response. Is this happening only for this specific endpoint? Are you using react-native? If so can you tell me the following versions:

react-native version? reactotron version? (the desktop client) reactotron-react-native version? Are you using any other reactotron plugins?

Thanks!

rmevans9 avatar Dec 09 '18 01:12 rmevans9

react-native 0.56.1 reactotron 2.1.2 reactotron-react-native 2.1.0

Networking is the only other plugin I'm using.

On Sun, 9 Dec 2018 at 01:11, rmevans9 [email protected] wrote:

Hmm... I personally haven't seen it show "skipped" when you get an actual response. Is this happening only for this specific endpoint? Are you using react-native? If so can you tell me the following versions:

react-native version? reactotron version? (the desktop client) reactotron-react-native version? Are you using any other reactotron plugins?

Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/infinitered/reactotron/issues/884#issuecomment-445502405, or mute the thread https://github.com/notifications/unsubscribe-auth/AA95RR97qwbGEXPkGcSEOXAevEze1rZiks5u3GM1gaJpZM4Y5bSE .

-- jfs

monkeyinsurgency avatar Dec 10 '18 17:12 monkeyinsurgency

All that seems up to date enough. Is this endpoint something public that I can try out? If not, can you reproduce on a different endpoint?

Also - can you show the code that makes this request and let me know which library (if any) you are using to do the network requests?

rmevans9 avatar Dec 10 '18 23:12 rmevans9

@monkeyinsurgency, could you solve the error?

scabezasiq avatar Jan 17 '19 22:01 scabezasiq

Could we show something like {empty} instead of skipped and make it visually different to help make this clearer? Obviously that won't help the people who are getting skipped unexpectedly.

kevinvangelder avatar Mar 27 '19 03:03 kevinvangelder

@kevinvangelder Yes, we can. The default value is set here: https://github.com/infinitered/reactotron-react-native/blob/master/src/plugins/networking.ts#L90

rmevans9 avatar Apr 07 '19 01:04 rmevans9

I am also having this problem with a request with soap protocol

mayermatheus avatar Jun 06 '19 00:06 mayermatheus

What's confusing is this:

https://github.com/infinitered/reactotron-react-native/blob/master/src/plugins/networking.ts#L99

That seems to be where the skipped comes from. However, the Reactotron UI does not show the tildes.

If you save the response to clipboard as markdown, it looks like (NOTE: dashes added to avoid section being considered another code block):

### Data Received

-```json
 skipped 
-```

It would be much more informative and less confusing for the UI and copied markdown to show something like

No Response in Body.

skipped does not clearly indicate what the response was.

calendee avatar Jun 09 '19 05:06 calendee

In my case, I use "axios" to make https requests.

When I configure the library with a very short "timeout" for the requests, all the requests result in "skipped" if the server is not able to respond before reaching the "timeout".

ramosalx1504 avatar Jul 05 '19 20:07 ramosalx1504

@ramosalx1504 this is currently expected as no body means reactotron is going to render "skipped"

rmevans9 avatar Jul 08 '19 00:07 rmevans9

We should revisit and probably update so it no longer says "Skipped"

rmevans9 avatar Aug 28 '19 00:08 rmevans9