Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

RCTNetworkingQueue Error #19

Open
LukeAvery92 opened this issue Dec 1, 2015 · 9 comments
Open

RCTNetworkingQueue Error #19

LukeAvery92 opened this issue Dec 1, 2015 · 9 comments

Comments

@LukeAvery92
Copy link

Getting error about received data was not string or was not a recognised encoding?

My request:

var gaEvent = new GAHits.Event('test', 'test', 'test', 1);
ga.send(gaEvent);

@the4dpatrick
Copy link

I also ran into this error. Same as #17

edit:

After some testing, I think this has to do with Google's Measurement Protocol Reference. I used one of my other tracking id for one of my websites and the event was tracked. However when I used my app's tracking id, no event was tracked.

Also the error message is being emitted via React's RCTNetworking.m 320:1. Since the response from the url (https://ssl.google-analytics.com/collect) is a gif, the message can be disregard as no response is actually needed after a request with the data payload has been sent.

I'm still working out why this API works with normal website tracking ids and not app tracking ids

@nicholasalanbrown
Copy link

Great detective work, @the4dpatrick. I was about to use Google Web Analytics as a fallback - good to know I can still use this package in that event. I'll look into the GA documentation as well and see if I can help.

This is also the same as #2, which is already closed. We should probably keep the conversation here.

@lwansbrough
Copy link
Collaborator

facebook/react-native#1780

No one has indicated what version of iOS they're running - looks like this should be fixed starting with iOS 8? If this is not the case then we should re-open this issue citing a regression.

@LukeAvery92
Copy link
Author

I was on 9.1 iphone 4s

@tgoldenberg
Copy link

@the4dpatrick, I'm confused at to how you are getting it working with GA for web. I tried this as well as the normal mobile tracking and was not successful either way. Could you share a code snippet to show how you are using it? Thanks

@lwansbrough
Copy link
Collaborator

@LukeAvery92, thanks, I'll reopen that issue.

@nicholasalanbrown
Copy link

@lwansbrough I'm running iOS 9.1 on a 5S. It's definitely not related to the iOS version. I've tried on both a physical device and the Simulator but can't get any visits to be recorded in GA.

@lwansbrough
Copy link
Collaborator

@nicholasalanbrown It's interesting that the visits aren't being recorded. Are requests sent when you MITM your phone/computer? The issue that the bug report pertains to is explicitly the response causing problems. This is a problem with React Native core. Any other issues you see that don't result in this problem should be filed separately.

@the4dpatrick
Copy link

I've created a separate issue here #21 @lwansbrough @tgoldenberg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants