kbase / workspace_deluxe

The Workspace Service (WSS) is primarily a language independent remote storage and retrieval system for KBase typed objects (TO) defined with the KBase Interface Description Language (KIDL).
MIT License
1 stars 17 forks source link

Handle service ownership error not handled well #746

Open MrCreosote opened 1 month ago

MrCreosote commented 1 month ago
An error occured while processing IDs: There was an unexpected error while trying to contact the
Handle Service: 'Request owner failed.\nError Code: 401\n{\n  "data": null,\n
 "error": [\n    "User Unauthorized"\n  ],\n  "status": 401\n}\n\n'

https://github.com/kbase/workspace_deluxe/blob/develop/service/src/main/java/us/kbase/workspace/kbase/HandleIdHandlerFactory.java#L214-L217

Should catch a ServerException and report an error there.

Also may need a change in the handle service, should be returning 0s for any failures?