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

(GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1 #27

Open
patricksebastien opened this issue Mar 19, 2016 · 2 comments
Open

Comments

@patricksebastien
Copy link

I have this error in my log (both in simulator and on a real ios device):
VERBOSE: GoogleAnalytics 3.13 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect VERBOSE: GoogleAnalytics 3.13 -[GAIBatchingDispatcher dispatchWithCompletionHandler:] (GAIBatchingDispatcher.m:632): Sending hit(s) GET: https://ssl.google-analytics.com/collect?... INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1 INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:237): 1 hit(s) sent

Reported without any answer here:
http://stackoverflow.com/questions/30363622/google-analytics-http-status-1-when-sending-hits-by-request-get-https-ssl-g

Any idea?

@iosnewbie2016
Copy link

iosnewbie2016 commented Jul 16, 2016

Hi - Am trying it on the iOS version of my cordova app. Am receiving a similar error too. Did you have any luck in fixing it? Can you pls help me?

I see issues in parsing the json file. Here are my logs. Am struck with this.

GoogleTagManager warning: Cannot find binary resource file 'GTM-XXXXXX'.
GoogleTagManager warning: Cannot find resource file 'GTM-XXXXXX.plist'
GoogleTagManager verbose: loading default container from GTM-XXXXXX.json

I downloaded the json file from GTM account - Admin, export for the live version. I dont see an option for download from Actions tab(as listed in some of the posts) and when I checked with my GTM anchor, she informed that, it is no longer available with Version 2. It was an option in the old gtm product. Version 2 only has export.

But with the json, I get error on parsing it.

GoogleTagManager warning: Error reading resource from json file: Type __NSCFArray is not supported
GoogleTagManager error: No default container found; creating an empty container.

GoogleTagManager verbose: GoogleAnalytics 3.13 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect
GoogleTagManager info: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1

I saw one of the solutions to bump up library version and if I try to bump up version of libGoogleAnalyticsServices.a to 3.15, then I get compilation errors.

Thanks. Pls let me know if you need more information.

@bitumin
Copy link

bitumin commented Sep 15, 2016

@iosnewbie2016 I'm not sure your problem is related to OPs problem. If you do not have the option to download the binary files (GTM-XXX filename without extension) it is possible that you created a web account/container in TGM instead of a mobile-ios or mobile-android account/container.

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

No branches or pull requests

3 participants