Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

My services stopped working

Hi,

I was using appery.io proxy until my application was finished. So I unchecked "use appery.io proxy" from my services, generate the application to Android as apk and uploaded it to a Samsung Galaxy SII for testing. It didn't work. I returned to appery.io and checked the "use appery.io proxy" again. So, I clicked "test" and the apllication now does not work in Chorme browser, issuing the following error: GET https://appery.io/app/rest/tunnel 404 (Not Found) . I tried many times and there is no way of my application working. Any suggestion?
I restored old backups and run under appery.io. All of them stopped working...Did you change any library? Now I receive the following message in my console:
Uncaught SyntaxError: Unexpected token S jquery-1.8.2.js:514
jQuery.extend.parseJSON jquery-1.8.2.js:514
Appery.DataSource.$t.createClass.__responseDataHandler appery.js:1399
proxy jquery-1.8.2.js:775
fire jquery-1.8.2.js:974
self.fireWith jquery-1.8.2.js:1082
done jquery-1.8.2.js:7788
callback

My rest sevices return plain text, not JSON, but it was working well up to last friday...did you change something?

Thanks a lot.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

My services stopped working

Hello Pasteur,

Please share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a
:: http://docs.appery.io/documentation/s...

And tell us steps to reproduce it.

Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

My services stopped working

Ok Illya, I will. Thanks.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

My services stopped working

Hello! Looks like there is some problem with your external service. Did you share the app?

Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

My services stopped working

Hi Marina,

I will share my app. Very strange behaviour.I had the app installed in many devices and all of them stopped working (when I try to log in, it does not allow me. The login system is a rest web service that return an authentication key. It is working).

Thanks

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

My services stopped working

We'll take a look. Let us know when you share app.

Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

My services stopped working

Hi Marina/Illya,

I shared my project (IntertrackMobile). Please use the following to log in (will be asked in the login page, the startScreen ):

Code: Select all

Usuário: teste100 
Senha:  testeitrack111 
Empresa: itrackmon 

The app stops after you click the button "Entrar". The click event of the button "Entrar" calls a service named "loginservice" that has parameters "usuario", "senha" and "bancocliente". I debugged the app and concluded that it stops loginservice (its complete event isn't invoked). This message is issued at this point:
Unexpected token S jquery-1.8.2.js:514
jQuery.extend.parseJSON jquery-1.8.2.js:514
Appery.DataSource.$t.createClass.__responseDataHandler appery.js:1399
proxy jquery-1.8.2.js:775
fire jquery-1.8.2.js:974
self.fireWith jquery-1.8.2.js:1082
done jquery-1.8.2.js:7788
callback
I think that one of the libraries shown in the message above (appery.js or jquery.1.8.2.js) has changed, because the app was working perfectly, and I tested it for more than one month in Iphones, Galaxyes, web, Windows Phone. Another strange behaviour, is that the html5/js version installed in my server also stopped working . I discovered this problem just when I was almost to post the app at Google Play (as I stated before, I was removing the appery.io proxy and it didn't work in Iphone and Samsung devices. So, I decided to check the "use appery.io proxy" again and the apllication did not work, either. I restored some old backups and I had the same problem).

Code: Select all

Thank you
Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

My services stopped working

Continuing the last message...
I have a feeling to this problem... didn't you change the service behaviour? I say this because my services configuration has "json" as DataType and does not return Json, they return plain text. But, even at this configuration, they were working and the "complete" event of the services was invoked. Now, the complete event is not invoked anymore and the message "jQuery.extend.parseJSON jquery-1.8.2.js:514 " is issued. Didn't you change something in the code that forces the rest service to return JSON if the Data Type is JSON? It does not allow the rest service to return plain text anymore?

Code: Select all

Thank you again.
Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

My services stopped working

One more information that can help you: call the login rest web service to see its output:

http://www12.itrack.com.br/itrackmon/...

Thanks

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

My services stopped working

Hi, Pasteur.
Please change "Data Type" from "json" to "xml" in all services that gets string (not a valid json) in response.

Return to “Issues”