← Back to team overview

touch-packages team mailing list archive

[Bug 1401560] [NEW] smart-scopes-proxy reports JSON parsing errors if network is not available

 

Public bug reported:

It seems that network failure is not correctly handled where it should
be while fetching list of remote scopes, and we attempt to parse empty
string:

phablet@ubuntu-phablet:~/.cache/upstart$ grep -i parse smart-scopes-proxy.log
[2014-12-11 14:31:16.214007] ERROR: SSRegistry: SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: Failed to parse json string: * Line 1, Column 1
[2014-12-11 14:31:16.214467] ERROR: SSRegistry: SSRegistryObject: get_remote_scopes() failed: unity::ResourceException: Failed to parse json string: * Line 1, Column 1

** Affects: unity-scopes-api (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Description changed:

  It seems that network failure is not correctly handled where it should
  be, and we attempt to parse empty string:
  
  phablet@ubuntu-phablet:~/.cache/upstart$ grep -i parse smart-scopes-proxy.log
  [2014-12-11 14:31:16.214007] ERROR: SSRegistry: SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: Failed to parse json string: * Line 1, Column 1
  [2014-12-11 14:31:16.214467] ERROR: SSRegistry: SSRegistryObject: get_remote_scopes() failed: unity::ResourceException: Failed to parse json string: * Line 1, Column 1
- [2014-12-11 14:31:26.229609] ERROR: SSRegistry: SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: Failed to parse json string: * Line 1, Column 1
- [2014-12-11 14:31:26.230349] ERROR: SSRegistry: SSRegistryObject: get_remote_scopes() failed: unity::ResourceException: Failed to parse json string: * Line 1, Column 1
- [2014-12-11 14:31:36.241582] ERROR: SSRegistry: SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: Failed to parse json string: * Line 1, Column 1

** Description changed:

  It seems that network failure is not correctly handled where it should
- be, and we attempt to parse empty string:
+ be while fetching list of remote scopes, and we attempt to parse empty
+ string:
  
  phablet@ubuntu-phablet:~/.cache/upstart$ grep -i parse smart-scopes-proxy.log
  [2014-12-11 14:31:16.214007] ERROR: SSRegistry: SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: Failed to parse json string: * Line 1, Column 1
  [2014-12-11 14:31:16.214467] ERROR: SSRegistry: SSRegistryObject: get_remote_scopes() failed: unity::ResourceException: Failed to parse json string: * Line 1, Column 1

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1401560

Title:
  smart-scopes-proxy reports JSON parsing errors if network is not
  available

Status in unity-scopes-api package in Ubuntu:
  Confirmed

Bug description:
  It seems that network failure is not correctly handled where it should
  be while fetching list of remote scopes, and we attempt to parse empty
  string:

  phablet@ubuntu-phablet:~/.cache/upstart$ grep -i parse smart-scopes-proxy.log
  [2014-12-11 14:31:16.214007] ERROR: SSRegistry: SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: Failed to parse json string: * Line 1, Column 1
  [2014-12-11 14:31:16.214467] ERROR: SSRegistry: SSRegistryObject: get_remote_scopes() failed: unity::ResourceException: Failed to parse json string: * Line 1, Column 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1401560/+subscriptions


Follow ups

References