question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Got exception while trying to submit event data

See original GitHub issue

Hi, guys, I’m running Countly Opensource Server from docker, and I have this basic setup

This is my server address private val countlyServerUrl: String = "http://192.168.1.244:32768"

basic initialization

Countly.sharedInstance().isLoggingEnabled = true
Countly.sharedInstance().enableCrashReporting()
Countly.sharedInstance().init(application.applicationContext, countlyServerUrl, countlyAppKey, null, DeviceId.Type.ADVERTISING_ID)
Countly.sharedInstance().setLocation(getCountryCode(), getActualCity(), null, null)

and i am sending a basic event Countly.sharedInstance().recordEvent("Something")

but when i run the app from my phone and the search in the logs, give me this exception while trying to submit event data

java.net.ProtocolException: Unexpected status line: <html>
at com.android.okhttp.internal.http.StatusLine.<init>(StatusLine.java:38)
at com.android.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:197)
at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:103)
at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:677)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:403)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:347)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:515)
at ly.count.android.sdk.ConnectionProcessor.run(ConnectionProcessor.java:208)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

So, any help will be much appreciated

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
randyhbhcommented, Feb 4, 2018

Any help???

0reactions
ArtursKadikiscommented, Feb 6, 2018

Good to hear that!

Read more comments on GitHub >

github_iconTop Results From Across the Web

event data is lost when failing to send to sentry #679 - GitHub
Events can fail to send for many reasons, including quotas and inbound filters, network conditions, and other reasons which have nothing to do ......
Read more >
"Submit is not a function" error in JavaScript - Stack Overflow
The javascript function submitTheForm() is accessing the submit input element and calling the click event on it which results in the form submission....
Read more >
I'm receiving an error message when I try to register for or ...
I'm receiving an error message when I try to register for or access an event. How do I fix this? Troubleshooting Event Management...
Read more >
Sending Events - Exceptionless
Real-time exception reporting for ASP.NET, Web API, WebForms, WPF, Console, and MVC applications. Includes event organization, notifications, and more.
Read more >
Exception Events - Genesys Documentation
This indicates that an abnormal condition occurred while trying to perform the submit request. This event will be sent as a result of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found