Skip to content

CdsServiceClient - unspecific error messages are returned #45

@stvonolf

Description

@stvonolf

Hi,
It seems after you switched from SOAP to WebAPI backend, the error messages returned by the CdsServiceClient are very generic.

Examples:

  • Create entity with missing mandatory attribute:
    Microsoft.Rest.HttpOperationException: 'Operation returned an invalid status code 'BadRequest''
    Expected: more specific exception indicating missing/invalid attributes of entity

  • Create entity using impersonation - passing invalid CallerId (random Guid)
    JsonReaderException: Bad JSON escape sequence: \x. Path '_error', line 1, position 170.
    Expected: exception indicating that callerId is invalid

There might be more cases like that - please verify.

Regards,
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions