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.

Can't write track_message to server

See original GitHub issue

Hi, I tried to implement library version 4.6.x on my Android app. First call to MixpanelAPI.track is working but the next calls are giving me the next error:

E/MixpanelAPI.ViewCrawler﹕ Can't write track_message to server
    com.mixpanel.android.viewcrawler.EditorConnection$EditorConnectionException
            at com.mixpanel.android.viewcrawler.EditorConnection$WebSocketOutputStream.write(EditorConnection.java:147)
            at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
            at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:85)
            at java.io.OutputStreamWriter.flushBytes(OutputStreamWriter.java:171)
            at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:158)
            at android.util.JsonWriter.flush(JsonWriter.java:384)
            at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.sendReportTrackToEditor(ViewCrawler.java:646)
            at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.handleMessage(ViewCrawler.java:306)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.os.HandlerThread.run(HandlerThread.java:61)
E/MixpanelAPI.ViewCrawler﹕ Can't close writer.
    com.mixpanel.android.viewcrawler.EditorConnection$EditorConnectionException
            at com.mixpanel.android.viewcrawler.EditorConnection$WebSocketOutputStream.write(EditorConnection.java:147)
            at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
            at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:85)
            at java.io.FilterOutputStream.close(FilterOutputStream.java:61)
            at java.io.BufferedOutputStream.close(BufferedOutputStream.java:152)
            at java.io.OutputStreamWriter.close(OutputStreamWriter.java:141)
            at android.util.JsonWriter.close(JsonWriter.java:393)
            at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.sendReportTrackToEditor(ViewCrawler.java:651)
            at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.handleMessage(ViewCrawler.java:306)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.os.HandlerThread.run(HandlerThread.java:61)

The version 4.5.3 is working like a charm. No errors.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
pecabumcommented, Nov 23, 2016

same for 4.9.2

1reaction
lidorDFcommented, Jun 1, 2021

Still getting this error, version in build gradle: ‘mixpanel-android:5.9.1’ any solution except the manifest?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Track-It! Server Has Experienced an Error - BMC Community
Open Track-It! · Click Options -> Configure.... · From the e-mail type dropdown list, select MAPI / MS MAIL / EXCHANGE. · Click...
Read more >
"Cannot connect the computer to the server" error message ...
To fix this problem yourself on the client computer, follow these steps: Click Start, click Run, type regedit, and then click OK. Locate...
Read more >
Find My unable to connect to server | Apple Developer Forums
Anyone running iOS 15 beta having issues with Find My? I am able to locate myself however none of the other 5 members...
Read more >
Tracking Read Status of Email Messages in Exchange Server
If read tracking isn't already enabled, then you won't be able to track the read status of messages that have already been sent....
Read more >
"Can't communicate with server" Error When Using Garmin ...
If the issue persists, adjust the LAN setting on the computer. Windows: Press the Windows key + R on the keyboard; Type inetcpl.cpl;...
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