New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Login via piwik mobile #2244
Comments
Hi, What version of piwik itself do you use? As we use the meta data api in piwik mobile, only piwik > 0.7 could work. What kind of error occured? Any error message displayed? Have you already tried another piwik, our online demo for example? Try http://demo.piwik.org and anonymous access. |
Replying to SteveG:
Hi, The version i used is 1.2.1 the error message show " oops...problem during the request, please try again. " I already created a test account. It all the same no matter change the permission to admin or anonymous.
|
Hey hugo5688, Please, ensure you can answer the following questions with yes:
Further:
Greetz Thomas |
Piwik Mobile 1.3 is available now. Could you try it with this version again, please? |
Hey hugo5688, can you just leave a short comment whether this error still occurs? |
A friend confirmed the issue. Here are steps he did:
He said that
Maybe this report can help fixing the issue... Some thoughts
Thanks :) |
Hi Matt, I've a look at this next weekend. The 'oops...' message is displayed in case of an unknown error , see http://dev.piwik.org/trac/browser/mobile/tags/1.3.1/Resources/library/HttpRequest.js#L269
Maybe there is a parse error? I've currently no Server running having a newer version. Only Piwik Server 1.0. I have to setup one.It definitely works with Piwik Server Version 1.0. Was there any change since 1.0? What I do is:
|
Thomas, thanks for following up.
http://example.org/?module=API&method=UsersManager.getTokenAuth&userLogin=admin&md5Password=test does NOT work, but In Piwik Mobile, do you make the request to domain/?module=API or to domain/index.php?module=API ?
Then, do you call the API to get the list of names for each ID? For example on his piwik, the call to module=API&method=SitesManager.getSitesWithAtLeastViewAccess returns a XML that is 3Mb!!! so, too big. Maybe the solution would be to implement a "site selector" similar to the one in the Piwik UI. Load by default, the first 10 website Ids and names, and then have a search field to search for another website. The ajax js code is using the API as well: SitesManager.getPatternMatchSites() to search for string matching (and soon also match ID: #2425) What do you think about the site selector proposal? |
Attachment: |
(In [4865]) refs #2244 display the actual error message in case of a default error |
I do now output the "oops" message as well as the actual error message. Ah! His site requires 'index.php'. There was an error in previous (and the current published) versions that a slash is always added if there is not already a slash at the end, see http://dev.piwik.org/trac/browser/mobile/tags/1.3.1/Resources/views/settings/editaccount.js#L259 . That means the app adds a slash after 'index.php' which probably causes the error. It's already fixed in trunk http://dev.piwik.org/trac/browser/mobile/trunk/Resources/library/Piwik/Network/AccountRequest.js#L171 . Otherwise I don't put 'index.php' or something else. When verifying the account credentials I call 'SitesManager.getSitesIdWithAtLeastViewAccess' JSON output and only IDs which should be a bit smaller. But I always request "SitesManager.getSitesWithAtLeastViewAccess" when a user starts the app to get a list of his current sites. I currently don't cache it cause the user's permissions have probably changed (added a new site or removed one). Damn! So many sites :) We definitely have to implement a selector for sites. |
Cool changes! Feedback
|
Issue will be fixed in Piwik Mobile 1.6 release. Please reopen if it is not working for you. |
Same problem happened in Iphone4, ios 4.3.1, with piwik mobile 1.6.2 |
I'm getting the same issue now on latest version. I can login from desktop just fine. I checked my url (both with slash or index.php appended), username and password. I get the "failed to parse response" message and then it says the request status is "no error". |
It sounds like there seems to be some kind of redirect maybe. Make sure to add a |
On Sun, Dec 21, 2014 at 9:40 PM, Thomas Steur notifications@github.com
|
I used the same URL and it works just fine for me. I tried to log in as anonymous but get an error of course because I am not allowed to log in which means it works in general. It was able to parse the response. I do get a "response parse error" in case I use only |
No redirects set.. :( 2014-12-21 22:56 GMT+01:00 Thomas Steur notifications@github.com:
|
Tried it with iOS and it works as well. Can you maybe try it from a different network? And / or maybe also from another device? BTW: We released an update for iOS today maybe you can give it a try just in case the problem is not related to your server or network. |
hi,
i tried a lot of time, i can't not login via piwik mobile.
but it works when i use the safari to access the login page.
please tell me how to fix it.
hardware:iphone4
OS:iOS 4.2.1
The text was updated successfully, but these errors were encountered: