advertised_browser lookup error

Questions about the WURFL Cloud service.
cdavies
Posts: 7
Joined: Wed Feb 20, 2013 10:09 am

advertised_browser lookup error

Postby cdavies » Fri Nov 08, 2013 10:18 am

I'm using the cloud service to lookup the user agent

Mozilla/5.0 (iPod; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B329

This is the user agent that comes from an in-app WebView which is different from the standard safari user agent for this device which is

Mozilla/5.0 (iPod; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25


When calling

AbstractDevice device = manager.getDeviceFromRequest(request, response, capabilities);

I then get the exception being thrown

java.lang.IllegalArgumentException: Something is wrong with capability 'advertised_browser': null
at com.scientiamobile.wurflcloud.CloudClient.detectDevice(CloudClient.java:382) ~[client-java-1.0-simple-simple.jar:na]
at com.scientiamobile.wurflcloud.CloudClientManager.getDeviceFromRequest(CloudClientManager.java:143) ~[client-java-1.0-simple-simple.jar:na]


I've checked advertised_browser is on my capability list for the account. I saw a similar exception yesterday with advertised_device_os. Is there a bug with these new virtual capabilities? If it can't find a match, shouldn't it use a default value rather than throwing an exception which results in no device capabilities returned at all.
Last edited by cdavies on Fri Nov 08, 2013 1:50 pm, edited 1 time in total.

sriram
Posts: 161
Joined: Wed Jan 04, 2012 10:01 am

Re: advertised_browser lookup error

Postby sriram » Fri Nov 08, 2013 11:40 am

Hi,

Thank you for the information. Our support team is looking into this and we will keep you updated on this issue.

Thanks again and cheers!
Sriram Sridharan

cdavies
Posts: 7
Joined: Wed Feb 20, 2013 10:09 am

Re: advertised_browser lookup error

Postby cdavies » Fri Nov 08, 2013 12:42 pm

Great thanks for the speedy reply. Here is the stacktrace I saw for a request from our website monitoring bot

User Agent: Pingdom.com_bot_version_1.4_(http://www.pingdom.com/)


java.lang.IllegalArgumentException: Something is wrong with capability 'advertised_device_os': null
at com.scientiamobile.wurflcloud.CloudClient.detectDevice(CloudClient.java:382) ~client-java-1.0-simple-simple.jar:na
at com.scientiamobile.wurflcloud.CloudClientManager.getDeviceFromRequest(CloudClientManager.java:143) ~client-java-1.0-simple-simple.jar:na

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: advertised_browser lookup error

Postby kamermans » Fri Nov 08, 2013 4:17 pm

Thanks for your help - we've identified the problem and released an update to all servers to resolve the issue. This capability now returns and empty string instead of null for virtual capabilities that cannot be populated.
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!


Who is online

Users browsing this forum: No registered users and 63 guests