Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
itp
Contributor
Posts: 31
Registered: ‎10-01-2010
My Device: Blackberry Curve
My Carrier: Rogers

Z10 - Ajax requests show high rate of 400 http client errors

Hi

 

We have an web application (conventional HTML/JS/CSS) that uses jquery/jquery-mobile that communicates with a msSQL server using Ajax/XML.  It worked nearly perfectly for two years logging over 100,000 transactions by over 100 users. We had few complains about timeouts and usually related to poor reception.

 

We are upgrating from Bold/Storm to Z10 device. We also upgraded to recent jQuery/Jquery Mobile.  Initial tests are showing errors (400 - Bad Request) in about 2 to 5% of transactions.

 

Examination of BES server logs show errors are received there with http "400" errors.

 

To reduce possibility of application error, I wrote a very small jQuery/Ajax test script which makes request to remote server every 5 seconds.  Over 2  60 minute period results show  Success: Z10= 97%, Bold=100% my desktop=100%. This leads me to believe that problem is with Z10 or new BES server or communications in between.

 

I know that there are lots of variables here, but generally what should be my next step?  Are there any relevant, known issues for Z10?  Server setup considerations? Relevant tests?  Are there logs on BES to examine?

 

I want to know what to check next. I see a Development Mode in Security and Privacy Section but can't find documentation.  Is this useful for web pages or just blackberry "Apps"

 

thanks

 

itp

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Z10 - Ajax requests show high rate of 400 http client errors

Hi, 

 

Can you help provide some more info for troubleshooting:

 

  • What version of the BlackBerry 10 OS do you have running on the Z10?
  • To confirm - all devices are accessing the network via cell radio (through a BES) and not Wifi?
  • If so, are they both connecting to the same carrier (Rogers)?
  • What is the URL you are trying to access via AJAX?

Thanks

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
itp
Contributor
Posts: 31
Registered: ‎10-01-2010
My Device: Blackberry Curve
My Carrier: Rogers

Re: Z10 - Ajax requests show high rate of 400 http client errors

Thanks for your reply!

 

  • What version of the BlackBerry 10 OS do you have running on the Z10?

OS 10.2.1.537.

 

  • To confirm - all devices are accessing the network via cell radio (through a BES) and not Wifi?

through BES

 

  • If so, are they both connecting to the same carrier (Rogers)?

Rogers in both cases

 

  • What is the URL you are trying to access via AJAX?

it's an internal application, not accessible outside our firewall/BES server

 

Question:

Can I use BlackBerry remote web inspector or similar tool to debug into web page on Blackberry to see what is happening on the device?

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Z10 - Ajax requests show high rate of 400 http client errors

Yes, you can use remote web inspector in the BlackBerry browser (settings) or from a WebWorks application:

https://developer.blackberry.com/html5/documentation/beta/debugging_using_web_inspector.html

 

I would expect this to be 100% broken if it were a reproducible issue.  The fact that you're seeing this only 2-5% of the time is odd. 400 errors can be caused by caching behavior sometimes. I'm curious if there is any steps along the network where data may becoming stale?

 

Does the URL you are accessing sit behind a load balancer? 

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Highlighted
itp
Contributor
Posts: 31
Registered: ‎10-01-2010
My Device: Blackberry Curve
My Carrier: Rogers

Re: Z10 - Ajax requests show high rate of 400 http client errors

I will check question of load balancer.

Are there anything special considerations  in the ajax call? Here is example in jQuery.

 

$.ajax({
            url: '/mylib/myPgm ,
            dataType: 'xml' ,
            type:'POST' ,         
            data:    'data=' + myData ,
            success: function(xml){