olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramya (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OLINGO-1102) ODataErrorResponseChecker.checkResponse(...) not return detail error message for ODataServerErrorException
Date Wed, 26 Apr 2017 05:49:04 GMT

    [ https://issues.apache.org/jira/browse/OLINGO-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15984212#comment-15984212
] 

Ramya commented on OLINGO-1102:
-------------------------------

Hi,
If a 500 status code error does have a detailed error message, then we can throw ODataClientErrorException
so that the exception details can be obtained.
Please find the patch file attached.
Do verify the fix and get back if still an issue.

Thanks and Regards,
Ramya

> ODataErrorResponseChecker.checkResponse(...) not return detail error message for ODataServerErrorException

> -----------------------------------------------------------------------------------------------------------
>
>                 Key: OLINGO-1102
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1102
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.3.0
>            Reporter: Jin ZHAO
>         Attachments: 500-internal-server-error.png, ErrorMessage.diff
>
>
> When I access Microsot CRM online with Olingo client code, My request 
> https://talend.api.crm.dynamics.com/api/data/v8.1/subscriptionsyncentriesoutlook response
return: *Status:500 Internal Server Error* with detail error message(see attached screenshot:
500-internal-server-error.png)
> but [ODataErrorResponseChecker.java#L73|https://github.com/apache/olingo-odata4/blob/8515b48dd5e09e4597d0b396326bd6a074efa1f5/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/header/ODataErrorResponseChecker.java#L73]
not included the detail message in ODataServerErrorException
> This would very hard know why get 500 error.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message