reactotron
reactotron copied to clipboard
React Native - API Response 200 "skipped"
Responses showing as "skipped" regardless of status. Response Headers, Request, and Request Headers all available, just not Response.

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?
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 ?
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...
I'm definitely getting a response...
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!
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
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?
@monkeyinsurgency, could you solve the error?
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 Yes, we can. The default value is set here: https://github.com/infinitered/reactotron-react-native/blob/master/src/plugins/networking.ts#L90
I am also having this problem with a request with soap protocol
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.
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 this is currently expected as no body means reactotron
is going to render "skipped"
We should revisit and probably update so it no longer says "Skipped"