-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OData Client 7.6.4 is getting this error "In OData, a top-level error object must have exactly one property with name 'error'" #1756
Comments
Getting the same error on 7.6.4. 7.6.3 working fine. I'm getting the following stack trace: at Microsoft.OData.JsonLight.ODataJsonLightErrorDeserializer.ReadTopLevelErrorImplementation() With the following error message ODataException: A property with name 'type' was found in the error object when reading a top-level error. In OData, a top-level error object must have exactly one property with name 'error'. |
commit 182964d Author: Sreejith Pazhampilly <[email protected]> Date: Wed May 6 21:39:03 2020 -0700 Fix E2E Tests commit 565ccdc Author: Sreejith Pazhampilly <[email protected]> Date: Thu Apr 30 11:03:23 2020 -0700 Update to net core 2.1 and 3.1 for UT commit afeb7d8 Author: Sreejith Pazhampilly <[email protected]> Date: Tue Apr 28 16:33:36 2020 -0700 Make the CI working commit d844d4a Author: Sam Xu <[email protected]> Date: Thu Apr 23 22:09:17 2020 -0700 Update the test case projects commit 26709dd Author: Sreejith Pazhampilly <[email protected]> Date: Thu Apr 23 12:09:39 2020 -0700 updates , pipeline changes commit 21a1d3d Author: Sam Xu <[email protected]> Date: Wed Apr 22 18:27:12 2020 -0700 Modify the unit test case, fix the waring, fix the version, etc commit 82f949d Author: Sam Xu <[email protected]> Date: Wed Apr 22 15:01:40 2020 -0700 update the build CI and project commit c9fae43 Author: Sam Xu <[email protected]> Date: Tue Apr 21 15:21:30 2020 -0700 Clean up the codes commit 6c50be0 Author: Sam Xu <[email protected]> Date: Tue Apr 21 14:56:13 2020 -0700 With whole project changes commit 77d9f88 Author: Paul Odero <[email protected]> Date: Thu May 7 10:52:23 2020 +0300 Fix #1756 (#1764)- Reading OData Error Response in OData Client commit 5a20f51 Author: Sam Xu <[email protected]> Date: Mon May 4 16:10:36 2020 -0700 Resolve the product code build warnings commit 26739c1 Author: Sam Xu <[email protected]> Date: Mon May 4 13:48:50 2020 -0700 Fix WebApi issue OData/WebApi#2136: IN operator with double quote fails commit 44ed8db Author: Paul Odero <[email protected]> Date: Mon Apr 27 11:52:23 2020 +0300 Fixing issue #794 (#1656) commit e0e628a Author: Paul Odero <[email protected]> Date: Mon Apr 27 09:36:08 2020 +0300 Enable OData client to send IEEE754Compatible parameter in the reques… (#1659) * Fixes #725 and also fixes #522 commit a398670 Author: Sam Xu <[email protected]> Date: Fri Apr 17 11:48:34 2020 -0700 Fix some build warning in Edm lib commit 82ed887 Author: Clément Habinshuti <[email protected]> Date: Wed Apr 15 13:39:56 2020 +0300 Add support for relative uris and absolute uris with host header in json batch requests (#1740) commit b17d455 Author: Clément Habinshuti <[email protected]> Date: Wed Apr 15 11:40:01 2020 +0300 Update error message when adding unsupported query option (#1729) * Update error message when adding unsupported query option * Update string resources in portablelib * Fix resource string errors in portable lib * Update error message * Remove references to unused error message * Fix failing tests * Fix typo commit d3769fd Author: John Gathogo <[email protected]> Date: Thu Apr 9 10:55:38 2020 +0300 Fix bug where open types are not identified as such during serialization (#1727) * Fix bug where open types are not identified as such during serialization Remove unnecessary assert * serviceModel may be initialized from 2 locations. Ensure both trigger population of edm structured elements Co-authored-by: John Gathogo <[email protected]> commit 80e73d0 Author: KanishManuja-MS <[email protected]> Date: Fri Apr 3 10:10:43 2020 -0700 Revert "ODataMessageWriter can't dispose the stream if there's no write method called (#1714)" This reverts commit 3e02e30. # Conflicts: # test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Writer/JsonLight/ODataJsonLightInheritComplexCollectionWriterTests.cs
I'm getting the similar error but with 'innerError' indication (OData Client 7.6.4)
|
This was fixed. Should work well in the next release. |
OData Client 7.6.4
When I upgraded the Microsoft.OData.Client from 7.6.3 to 7.6.4 I am receiving the following error when I try to serialize an ODataError object into the Response "Content" and the OData client tries to deserialize the response.
On client 7.6.3 it works fine.
NOTE: I am listing the OData service code that can be used to test the exception from the service.
This is not a server side issue and only occurs when updating the client to 7.6.4
Code I use on the OData service side for the "test".
The text was updated successfully, but these errors were encountered: