4 posts / 0 new
Last post
Beat
Schedule deletion not working (partially)

Hi Hue Team,
the new Hue SDK 1.21 method deleteResource() works fine but it always returns error "COULD_NOT_PARSE_RESPONSE".

The following call (Bridge V1):

	bridge.deleteResource(schedule, BridgeResponseCallback);

seems to work:

	D/HueSDK: HttpRequest: request finished with curl code 0, status: 200, body: [{"success":"/schedules/4 deleted"}

but it finally returns an error:

	E/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_request_and_handle_response: error occurred during parsing

Can you please check/fix this?

Thanks
Beat

Full log:

	D/HueSDK: Bridge - Delete resource
	D/HueSDK: Bridge - delete resource type 107 - identifier 4
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: prepare: queue item has been added to the queue and will be executed on connection with type: BRIDGE_CONNECTION_TYPE_LOCAL
	D/HueSDK: Queue: add: added queue item with type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT to executor with connection type BRIDGE_CONNECTION_TYPE_LOCAL
	D/HueSDK: Queue: thread_method: start optimizing for queue with connection type BRIDGE_CONNECTION_TYPE_LOCAL
	D/HueSDK: DeleteDomainObjectQueueItem type 9: execute: domain object type: 107
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute: start execution
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_request: execute request
	D/HueSDK: HttpRequest: url: http://192.168.0.3/api/BXlvToAhK2RfLOB52Q2QKwcJHgDBiTq9o1SGBK1q/schedules/4, method: DELETE, body:
>>>	D/HueSDK: HttpRequest: request finished with curl code 0, status: 200, body: [{"success":"/schedules/4 deleted"}
	D/HueSDK: HttpRequestExecutor: handle_response /schedules/4
	D/HueSDK: BridgeConnectionStateAuthenticateBase::handle_errors
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_request: received request callback
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_request: request done
>>>	E/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_request_and_handle_response: error occurred during parsing
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_internal: execution failed, no retry
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_internal: call the callback
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: execute_internal: execution finished with code: -607
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: handle_callback: execute callback
	D/HueSDK: Queue: execute task: done executing queue item with result: RETURN_CODE_COULD_NOT_PARSE_RESPONSE, queue item type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT, connection type: BRIDGE_CONNECTION_TYPE_LOCAL, wait for response: 1
	D/HueSDK: Bridge - Native to Java - start
	D/HueSDK: Bridge - Native to Java - bridge state
	D/HueSDK: BridgeConfiguration - Native to Java - start
	D/HueSDK: BridgeConfiguration - Native to Java done, return
	D/HueSDK: Bridge - Native to Java - BridgeState translated, setting to bridge
	D/HueSDK: Bridge - Native to Java - done
	D/HueSDK: BridgeResponseCallbackSession - Enter callback
	D/HueSDK: BridgeResponseCallbackSession - Calling Java callback
>>>	E/MyApp: BridgeResponseCallback: Error=COULD_NOT_PARSE_RESPONSE, Message=Unknown
	D/HueSDK: DeleteDomainObjectQueueItem type QUEUE_ITEM_TYPE_DELETE_DOMAIN_OBJECT: handle_callback: done executing callback

 

Beat
It looks like this only

It looks like this only happens when running in the Android AVD Emulator. So not an urgent issue.

Developers Support
Schedule deletion not working (partially)

Hi,

Can you provide more information on the platform you are running on and what is the bridge sw version (swversion": "01038802")?
We couldn't reproduce.

What we found strange is the following line, it's missing a "]":

D/HueSDK: HttpRequest: request finished with curl code 0, status: 200, body: [{"success":"/schedules/4 deleted"}

Hue Developer Support - Niek

Beat
Hi Niek,

Hi Niek,
I'm using Windows 10 64-Bit, the latest Android Studio 3.0.1 and Hue Bridge model BSB001 software version 01038802 (1.16.0).

It works fine on the physical device (API 24) and also on AVD Virtual Device (API 19):
    API level 19 - Google APIs Intel Atom (x86)

But it causes troubles with AVD Virtual Devices:
    API level 24 - Google APIs Intel Atom (x86)
    API level 26 - Google APIs Intel Atom (x86)

Thanks
Beat

Log in or register to post comments