"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

DELETE /targets/{target_id} not working?

I haven't changed this particular code in a couple of weeks, but it seems deleting a target recently stopped working, with HTTP 400:

GET /targets/4de2e4b9cf154d78bfe3baa6722ab952
{"result_code"=>"Success", "transaction_id"=>"fb1da348a8134c3ca5615e5807c652a0", "target_record"=>{"target_id"=>"4de2e4b9cf154d78bfe3baa6722ab952", "active_flag"=>true, "name"=>"REDACTED", "width"=>194.0, "tracking_rating"=>2, "reco_rating"=>""}, "status"=>"success"}
DELETE /targets/4de2e4b9cf154d78bfe3baa6722ab952
{"result_code"=>"Fail", "transaction_id"=>"bcd16bec92e644339ffe336044fe0053"}

The signature calculation code is identical between GET and DELETE

Yes, I'm using the correct verb in the signature calculation - if I weren't, presumably I would have gotten a 401 response, not a 400.  The calculation *code* is the same, though the data (including the verb) being fed into it is not.

I currently get an HTTP 200 to the PUT request to set the "active_flag" to false, and a subsequent GET shows the "active_flag" is indeed set to false, however, I now get an HTTP 500 on the DELETE.

This might be due to your load testing of the provisioning server.

When you set the "active_flag" to "false", the target goes into a "processing" state.  You need to wait for it to transition to "success" before you can issue the DELETE.

[quote=Duane]

When you set the "active_flag" to "false", the target goes into a "processing" state.  You need to wait for it to transition to "success" before you can issue the DELETE.

[/quote]

 

No, you must set the active_flag to false first.  You cannot delete a target that has the active_flag set to true, nor can you DELETE a target in the "processing" state.

AlessandroB

Fri, 01/18/2013 - 13:40

@ALL: just FYI: beside this "beta" section, many threads to consult on CloudRecognition are here:

https://developer.vuforia.com/forum/ar-technical-discussion/cloud-recognition