matomo-org / matomo-sdk-android

SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!
BSD 3-Clause "New" or "Revised" License
387 stars 163 forks source link

Issue with tracking in Production Environment #324

Closed SilvanaP closed 2 years ago

SilvanaP commented 2 years ago

Hello, I have exactly the same problems as described here: https://github.com/matomo-org/matomo-sdk-android/issues/308 with the only difference, that my production environment is the one that does not work and development does.

I do not get an SSL exception though, and when looking into the Timber logs, I do not get any hint what exactly is failing. Is there any way to see what is actually causing the problems? In the Network inspector it looks like the requests are built differently on dev and on production, just as described in the thread I referenced.

MATOMO:DefaultPacketSender: Connection is open to https://www.my-customer-url.com/piwik/matomo.php
MATOMO:DefaultPacketSender: Sending: Packet(type=POST, data={"requests":["?idsite=.....// request data //"]})
MATOMO:DefaultPacketSender: Transmission finished (code=500).
MATOMO:DefaultPacketSender: Transmission failed (code=500, reason=)
MATOMO:DefaultDispatcher: Failure while trying to send packet
MATOMO:DefaultDispatcher: Dispatched 0 events.
MATOMO:DefaultDispatcher: Unable to send all events, requeueing 4 events
MATOMO:EventDiskCache: Cache check took 0ms