Skip to content

Addressing not found exceptions

Deepa Kumari requested to merge dk/az-address-not-found-exception into master

Not found exceptions get masked to 500, added the logic where not found components will not cause any exceptions instead it will be silently ignored.

This behavior was already present in the previous versions of code. However during the cosmos upgrade from 4.0.0-preview-1 to the most recent version in M16, all exceptions were converted into CosmosException and due to that 404 got masked. Due to this we're having issues in testing where the API was working fine previously it started throwing 500.

As a workaround, we provided a separate collection for azure to create all the non-existent records but it made azure's response and collection different from other csps which is not exactly desired. So, handling the 404 as it was previously handled.

Edited by Deepa Kumari

Merge request reports