By Duane
on Thu, 11/01/2012 - 17:43
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
DELETE /targets/{target_id} not working?
Hi, does that happen with one specific target (the one you reported below), or does it happen in general (i.e. have you also tried with other targets) ?
DELETE /targets/{target_id} not working?
I just tried it with another target, f63d69fe34994c4f9283ed77bd7789e6, from a completely different data set and it failed the same way.
DELETE /targets/{target_id} not working?
One note: you mention "the signature calculation code is identical between GET and DELETE";
DELETE /targets/{target_id} not working?
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.
DELETE /targets/{target_id} not working?
After investigation, it turns out that there has been a recent update in the way DELETE requests are handled;
DELETE /targets/{target_id} not working?
OK - will you be able to take the two requests in immediate succession?
DELETE /targets/{target_id} not working?
OK - will you be able to take the two requests in immediate succession?
yes this should be possible
DELETE /targets/{target_id} not working?
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.
DELETE /targets/{target_id} not working?
Sorry for the inconvenience. We'll update the forum as soon as provisioning is restored.
Hi, I can not remove the
Hi,
I can not remove the target from the server too.
When you set the
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.
DELETE method
[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
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.
Thanks. It's works.
Thanks. It's works.
@ALL: just FYI: beside this
@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