stats: "No stats data found, please try again later" -> blog_uri vs blog_id
I don't get stats for my self-hosted blog in the Android app, just see "No stats data found, please try again later". Stats work great in my web-dashboard.
Indeed, for unknown reasons I seem to have 2 blog_id's for the same blog_uri, with the oldest one not collecting any stats. I guess that the stats API, in case the query parameter is blog_uri and there are two entries for that blog_uri, will return the first one?
so possible solutions:
- have android-app use blog_id instead of blog_uri (allowing user to select correct value)
- check stats db for double blog_uri's and remove non-active-ones
- change stats api to take all entries with blog_uri into account, returning result of the entry for which stats were collected most recently
hope this helps in solving this bug, just yell if you need more input (or tests) from me!
It looks like you have two entries for the same URI in the stats system, I'm reaching out to some folks to see if we can clear out the one that isn't working.
The app tries to get the blog_id based on the URI, so that's probably why it's getting confused...
that's the problem exactly.
wrong blog_id for blog_uri "blog.futtta.be": 2184847
correct blog_id for blog_uri "blog.futtta.be": 2185033
thanks for reaching out to some folks! ;-)
@futtta - they attempted a fix for you, can you please try again?
still the same error, although apparently they did the blog_uri for the old blog? weird ..
OK, try one more time please :)
same message, still no stats ...
@futtta - Would you be ok with sharing your wp.com login details with us so we can troubleshoot? You can email them to android at automattic dot com.
resolved this via email.
indeed, thanks guys!
This topic has been closed to new replies.