Can't login friom the Priv.ly app

17 views
Skip to first unread message

Tejas

unread,
Feb 16, 2016, 7:34:50 AM2/16/16
to privly
Hi Shivam,

I was just checking out the android project and I am successfully able to build and run the app on my android.But I am not able to login to https://privlyalpha.org/ (more precisely https://privlyalpha.org/token_authentications.json)and I have a active account (to which I can login from the web). It would be great if you can help me.

Following is my log:

mLoginResponse : <!DOCTYPE html>
                                                             <html>
                                                              <head>
                                                               <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
                                                               <!--
                                                                   This was likely rendered from the Privly-application templating system
                                                                   See: https://github.com/privly/privly-applications/pull/19
                                                                  -->
                                                               <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
                                                               <link href="../shared/css/common.css" media="screen" rel="stylesheet" type="text/css"/>
                                                               <script src="../vendor/polyfill/es6-promise.js">
                                                               </script>
                                                               <script src="../shared/javascripts/meta_loader.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/parameters.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/local_storage.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/context_messenger.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/glyph.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/storage.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/options.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/network_service.js" type="text/javascript">
                                                               </script>
                                                               <title>
                                                                New Login
                                                               </title>
                                                               <link class="top" href="../vendor/bootstrap/css/bootstrap.min.css" media="screen" rel="stylesheet"/>
                                                               <link class="top" href="../shared/css/top/top.css" rel="stylesheet"/>
                                                               <script src="../shared/javascripts/event_emitter.js" type="text/javascript">
                                                               </script>
                                                               <script src="../shared/javascripts/viewAdapters/new.js" type="text/javascript">
                                                               </script>
                                                               <script src="../vendor/jquery.min.js" type="text/javascript">
                                                               </script>
                                                               <script src="js/new.js" type="text/javascript">
                                                               </script>
                                                              </head>
                                                              <body data-privly-exclude="true">
                                                               <!-- Include all compiled plugins (below), or include individual files as needed -->
                                                               <script src="../vendor/bootstrap/js/bootstrap.min.js">
                                                               </script>
                                                               <!-- Wrap all page content here -->
                                                               <div id="wrap">
                                                                <div class="navbar navbar-inverse navbar-fixed-top injected_hide mobile_hide" role="navigation">
                                                                 <div class="container">
                                                                  <div class="navbar-header">
                                                                   <button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" type="button">
                                                                    <span class="sr-only">
                                                                     Toggle navigation
                                                                    </span>
                                                                    <span class="icon-bar">
                                                                    </span>
                                                                    <span class="icon-bar">
                                                                    </span>
                                                                    <span class="icon-bar">
                                                                    </span>
                                                                   </button>
                                                                   <a class="navbar-brand lobster home_domain" href="../Help/content_server.html" title="This is your current content server">
                                                                    Privly
                                                                   </a>
                                                                  </div>
                                                                  <div class="collapse navbar-collapse">
                                                                   <ul class="nav navbar-nav">
                                                                    <li class="logged_in_nav" style="display:none;">
                                                                     <a href="../History/new.html">
                                                                      <span class="glyphicon glyphicon-list-alt">
                                                                      </span>
                                                                      History
                                                                     </a>
                                                                    </li>
                                                                    <li class="active logged_out_nav">
                                                                     <a class="login_url" href="../Login/new.html">
                                                                      <span class="glyphicon glyphicon-log-in">
                                                                      </span>
                                                                      Login
                                                                     </a>
                                                                    </li>
                                                                    <li class="active dropdown logged_in_nav" style="display:none;">
                                                                     <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                                                      <b class="caret">
                                                                      </b>
                                                                      New Link
                                                                     </a>
                                                                     <ul class="dropdown-menu">
                                                                      <li class="dropdown-header">
                                                                       Select Application
                                                                      </li>
                                                                      <li>
                                                                       <a href="../Message/new.html">
                                                                        <span class="glyphicon glyphicon-pencil">
                                                                        </span>
                                                                        New Message
                                                                       </a>
                                                                      </li>
                                                                      <li>
                                                                       <a href="../PlainPost/new.html">
                                                                        <span class="glyphicon glyphicon-pencil">
                                                                        </span>
                                                                        New PlainPost
                                                                       </a>
                                                                      </li>
                                                                      <li>
                                                                       <a href="../Help/new.html">
                                                                        <span class="glyphicon glyphicon-info-sign">
                                                                        </span>
                                                                        Help
                                                                       </a>
                                                                      </li>
                                                                     </ul>
                                                                    </li>
                                                                    <li class
02-16 17:29:09.200 2605-2605/ly.priv.mobile W/System.err: org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
02-16 17:29:09.200 2605-2605/ly.priv.mobile W/System.err:     at org.json.JSON.typeMismatch(JSON.java:111)
02-16 17:29:09.200 2605-2605/ly.priv.mobile W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:160)
02-16 17:29:09.200 2605-2605/ly.priv.mobile W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:173)
02-16 17:29:09.200 2605-2605/ly.priv.mobile W/System.err:     at ly.priv.mobile.gui.activities.LoginActivity$VerifyLoginCredentialsTask.onPostExecute(LoginActivity.java:216)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at ly.priv.mobile.gui.activities.LoginActivity$VerifyLoginCredentialsTask.onPostExecute(LoginActivity.java:160)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at android.os.AsyncTask.finish(AsyncTask.java:651)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at android.os.AsyncTask.-wrap1(AsyncTask.java)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at android.os.Looper.loop(Looper.java:148)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5443)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
02-16 17:29:09.201 2605-2605/ly.priv.mobile W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
02-16 17:30:04.973 2605-3373/ly.priv.mobile I/GMPM: Tag Manager is not found and thus will not be used

It should return me some json but instead its returning this webpage.

Shivam Verma

unread,
Feb 16, 2016, 7:39:06 AM2/16/16
to pri...@googlegroups.com

Hi Tejas, 

This is an open issue on the github repository but I haven't been able to take a look at it yet.

I'll check this out in a couple of hours and post an update there.

-Shivam

--
You received this message because you are subscribed to the Privly development mailing list. To post to this list, send email to pri...@googlegroups.com. To unsubscribe from this group, send email to privly+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/privly?hl=en
 
Privly testers should also sign up for this list: https://groups.google.com/forum/#!forum/privly-test
---
You received this message because you are subscribed to the Google Groups "privly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privly+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tejas

unread,
Feb 16, 2016, 11:45:55 AM2/16/16
to privly
Thanks...If you think I can be of any use here , then just let me know.
Reply all
Reply to author
Forward
0 new messages