Piwik Mobile 2: "Network Errors" on almost every report

Hello,

I’m running Piwik via https with basic auth, which works quite fine for the webview. The Piwik Mobile app on the other hand gives me “Network Errors” for almost every single report available. Login worked fine by putting the credentials within the Piwik Server URL (as described in the FAQs), I’m able to switch between projects, but from here on almost nothing works.

Dashboard: Server time works, Screen Resolution, Length of Visits, Mobile vs. Desktop, Visitor Browser, OS Family show “Network Error”

Actions: Network Error for Page URLs, Entry Pages, Exit Pages, Entry page titles, Outlinks, Downloads, Content Name, Content Piece. The only report working in this view is “Page titles”.

Visitors: Country and Custom Variables work, Continent, Region, City, Length of Visits, Pages per Visit, Visits by Visit Number, Visits by days since last visit, Returning Visits and Provider show “Network Error”.

Same issues on the other views.

I tried reinstalling the app but it didn’t help. I have this issue for quite some time now, always hoping for improvement, but neither various updates of Piwik Server nor updates of the app itself helped.

Someone else experiencing the same problems and/or got some advice for me?

/edit: I’m using the app on an iPhone 5 on latest iOS.

/edit2: it works neither on WIFI nor 3G

I have never used the mobile app so I’m not sure I can help a lot, but is the Piwik webapp working correctly? Can you see the reports without problems?

One thing I could see going wrong is if the reports take too long to generate (because too much data) and the mobile app simply shows “Network error”. But that’s just a random idea…

Hi,

the Piwik web view works correctly. All reports there are complete and shown without errors.

Hey @Matthieu maybe try to use the Piwik mobile app, it’s really nice app :slight_smile:

It seems as if the basic auth credentials are often not sent to the server?! Of course every request without credentials gets dismissed by the server:


213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - [u]mySecretUser[/u] [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&[...]&language=en& HTTP/1.1" [u]200[/u] 725 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

....

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - [u]mySecretUser[/u] [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&[...]&language=en& HTTP/1.1" [u]200[/u] 1259 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"


It seems as if the basic auth credentials are often not sent to the server. Of course every request without credentials gets dismissed by the server:


213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - [u]mySecretUser[/u] [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&[...]&language=en& HTTP/1.1" [u]200[/u] 725 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

....

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - [u]mySecretUser[/u] [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&[...]&language=en& HTTP/1.1" [u]200[/u] 1259 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?hideMetricsDoc=1&showTimer=0&[...]&language=en& HTTP/1.1" [u]401[/u] 351 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"

213.162.68.xx - - [12/Feb/2015:13:26:58 +0100] "GET /piwik/index.php?module=API&[...]&cacherand=8762034 HTTP/1.1" [u]401[/u] 351 "-" "Appcelerator Titanium/3.4.1 (iPhone/8.1.3; iPhone OS; de_AT;)"