Well, I am about out of ideas. Here is the relevant portion of your logcat. It starts with the last line of code in javascript which calls from the browser control into the "makeRequest" method in our cordova plugin (all output prefaced with SWORD) and the ends with the next output from the browser control:
05-30 22:40:40.535 18254 18254 I chromium: [INFO:CONSOLE(330)] "****** Making request to: http://ntvmr.uni-muenster.de/community/vmr/api/metadata/liste/search/; params: {"biblicalContent":"Jas.1.1","detail":"page","limit":40}", source: file:///android_asset/www/js/versestudy.js (330) 05-30 22:40:40.538 18254 18308 D SWORD : about to spawn thread makeRequest(url: http://ntvmr.uni-muenster.de/community/vmr/api/metadata/liste/search/, postData: biblicalContent=Jas.1.1&detail=page&limit=40, method: 1 05-30 22:40:40.538 18254 18630 D SWORD : makeRequest(url: http://ntvmr.uni-muenster.de/community/vmr/api/metadata/liste/search/, postData: biblicalContent=Jas.1.1&detail=page&limit=40, method: 1 05-30 22:40:40.538 18254 18630 D SWORD : about to add postData length to header 05-30 22:40:40.538 18254 18630 D SWORD : finished adding postData length to header 05-30 22:40:40.538 18254 18630 D SWORD : adding any given headers 05-30 22:40:40.538 18254 18630 D SWORD : done adding any given headers 05-30 22:40:40.538 18254 18630 D SWORD : opening connection 05-30 22:40:40.538 18254 18630 D SWORD : setting request method 05-30 22:40:40.539 18254 18630 D SWORD : setting request properties 05-30 22:40:40.539 18254 18630 D SWORD : sending post data 05-30 22:40:40.579 18254 18630 D SWORD : getting response code 05-30 22:40:43.085 18254 18630 D SWORD : response code: 200 05-30 22:40:43.085 18254 18630 D SWORD : getting response 05-30 22:40:44.103 4216 5852 D NetlinkEvent: Unknown ND option type 31 05-30 22:40:44.320 18254 18630 D SWORD : finished. returning response with .length(): 88609 05-30 22:40:44.321 18254 18630 D SWORD : received response from makeRequest with .length(): 88609 05-30 22:40:44.362 18254 18254 D SystemWebChromeClient: : Line 1 : Uncaught SyntaxError: Invalid or unexpected token 05-30 22:40:44.362 18254 18254 I chromium: [INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid or unexpected token", source: (1) You and I both get the same number of bytes returned from the API call. The network request worked. I just can't seem to hand it back from the plugin to the browser control on your version of Android. I added just a couple more debug lines in a new build, but I have no idea why I can't hand back a string that is 88k long. It doesn't appear to have anything to do with the network request. Instead of he "Uncaught Syntax Error", there should next be output from the javascript side: 05-30 14:41:54.707 4831 4831 D SystemWebChromeClient: file:///android_asset/www/js/versestudy.js: Line 332 : ****** Returned from request to: http://ntvmr.uni-muenster.de/community/vmr/api/metadata/liste/search/ 05-30 14:41:54.707 4831 4831 I chromium: [INFO:CONSOLE(332)] "****** Returned from request to: http://ntvmr.uni-muenster.de/community/vmr/api/metadata/liste/search/", source: file:///android_asset/www/js/versestudy.js (332) 05-30 14:41:54.707 4831 4831 D SystemWebChromeClient: file:///android_asset/www/js/versestudy.js: Line 333 : ****** About to parse result as XML. result.length:88609 05-30 14:41:54.707 4831 4831 I chromium: [INFO:CONSOLE(333)] "****** About to parse result as XML. result.length:88609", source: file:///android_asset/www/js/versestudy.js (333) 05-30 14:41:54.713 4831 4831 D SystemWebChromeClient: file:///android_asset/www/js/versestudy.js: Line 342 : ****** parsed XML. 05-30 14:41:54.713 4831 4831 I chromium: [INFO:CONSOLE(342)] "****** parsed XML.", source: file:///android_asset/www/js/versestudy.js (342) I have no idea what could be happening between these two lines: 05-30 22:40:44.321 18254 18630 D SWORD : received response from makeRequest with .length(): 88609 05-30 14:41:54.707 4831 4831 D SystemWebChromeClient: file:///android_asset/www/js/versestudy.js: Line 332 : ****** Returned from request to: http://ntvmr.uni-muenster.de/community/vmr/api/metadata/liste/search/ There should be nothing but Cordova scaffolding between those two lines. Any ideas welcome. I've pushed my latest changes which include a few extra debug lines included in a new build. Here's the relevant code: versestudy.js: Lines 330-332 https://git.crosswire.org/main/bishop/blob/master/www/js/versestudy.js#L330 and from the link below, search for: HTTPUtils_makeRequest http://crosswire.org/svn/sword/trunk/bindings/cordova/cordova-plugin-crosswire-sword/src/android/SWORD.java Need a break, Troy On 5/30/19 1:44 PM, Dominique Corbex wrote: > On Thu, 30 May 2019 22:28:58 +0200 > Dominique Corbex <domini...@corbex.org> wrote: > >> Bishop crashes with this beta if I select witness or variant studies. > Bis repetita placent: > My Wifi connection was shut up. > > Here is the valid logcat. > > Dom > > > _______________________________________________ > sword-devel mailing list: sword-devel@crosswire.org > http://www.crosswire.org/mailman/listinfo/sword-devel > Instructions to unsubscribe/change your settings at above page
_______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page