Item Not Moved to Trash When Calling Delete

rohannagar
rohannagar
Community Member

Hey 1Password team,

I'm having some trouble with moving a newly created item to the trash with the Connect API. The DELETE method returns a successful 204 code, but the item remains in my vault. Does anyone have any ideas?

op-connect-api_1  | {"log_message":"(I) POST /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items","timestamp":"2021-05-04T18:28:21.4710561Z","level":3,"scope":{"request_id":"2df3f6c5-040d-444f-ae7f-6965281411d0"}}
op-connect-api_1  | {"log_message":"(I) POST /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items completed (200: OK)","timestamp":"2021-05-04T18:28:21.9391104Z","level":3,"scope":{"request_id":"2df3f6c5-040d-444f-ae7f-6965281411d0","jti":"olcl7m5ujgh57cokvwzw2icjvy"}}
op-connect-api_1  | {"log_message":"(I) DELETE /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items/rutkjy3nmnop7pntpuk2gz3bim","timestamp":"2021-05-04T18:28:22.9708743Z","level":3,"scope":{"request_id":"4dbacbe7-4fe1-46f3-8e35-3599bcbad979"}}
op-connect-api_1  | {"log_message":"(I) DELETE /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items/rutkjy3nmnop7pntpuk2gz3bim completed (204: No Content)","timestamp":"2021-05-04T18:28:23.276339Z","level":3,"scope":{"request_id":"4dbacbe7-4fe1-46f3-8e35-3599bcbad979","jti":"olcl7m5ujgh57cokvwzw2icjvy"}}


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided

Comments

  • rohannagar
    rohannagar
    Community Member

    Showing the GET for the same item after a delete returns 200:

    And the Item object that I get back still has trashed=false.

    op-connect-api_1  | {"log_message":"(I) POST /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items","timestamp":"2021-05-04T20:15:30.7595245Z","level":3,"scope":{"request_id":"bdcc6c61-8dd7-4610-abea-f5bd80e6e899"}}
    op-connect-api_1  | {"log_message":"(I) POST /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items completed (200: OK)","timestamp":"2021-05-04T20:15:31.8266372Z","level":3,"scope":{"request_id":"bdcc6c61-8dd7-4610-abea-f5bd80e6e899","jti":"olcl7m5ujgh57cokvwzw2icjvy"}}
    op-connect-api_1  | {"log_message":"(I) DELETE /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items/qwzgzsch2ifekcnrnlblgju544","timestamp":"2021-05-04T20:15:32.8606568Z","level":3,"scope":{"request_id":"d6f4ce24-0bb3-464c-bb33-7cf9d84d643f"}}
    op-connect-api_1  | {"log_message":"(I) DELETE /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items/qwzgzsch2ifekcnrnlblgju544 completed (204: No Content)","timestamp":"2021-05-04T20:15:33.2028542Z","level":3,"scope":{"request_id":"d6f4ce24-0bb3-464c-bb33-7cf9d84d643f","jti":"olcl7m5ujgh57cokvwzw2icjvy"}}
    op-connect-api_1  | {"log_message":"(I) GET /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items/qwzgzsch2ifekcnrnlblgju544","timestamp":"2021-05-04T20:15:33.2074403Z","level":3,"scope":{"request_id":"da16bf9c-981e-4458-a60b-eef1b7ef2602"}}
    op-connect-api_1  | {"log_message":"(I) GET /v1/vaults/5ve5wfpdu2kxxhj2jdozmes5re/items/qwzgzsch2ifekcnrnlblgju544 completed (200: OK)","timestamp":"2021-05-04T20:15:33.2146924Z","level":3,"scope":{"request_id":"da16bf9c-981e-4458-a60b-eef1b7ef2602","jti":"olcl7m5ujgh57cokvwzw2icjvy"}}
    
  • Hi,

    We have identified this issue in the 1.1.0 server images and are working on a fix. In the mean time you can use the 1.0 or 1.0.0 tags to use the previous version of the Connect server to restore the ability for DELETE to move items to the trash.

  • rohannagar
    rohannagar
    Community Member

    Thanks @James_1P, glad to know the team is on it.

  • rohannagar
    rohannagar
    Community Member

    Just as an FYI for anyone also running into this issue - I tested DELETE on the 1.1.1 image published a few days ago and it still appears broken.

  • Providing an update on this - we released version 1.2.0 last week which resolves the issue.

    Please see this reply for more information: https://1password.community/discussion/comment/599489/#Comment_599489

This discussion has been closed.