Comments (2)
@ElizabethOkerio could you share the error stack trace?
from odata.net.
Here's the stack trace, the error seems to come from JsonDocument.Parse
parsing the string, and not from the JSON writer:
[xUnit.net 00:00:13.05] Microsoft.OData.Tests.Json.JsonWriterAsyncTests.WritesJsonElementCorrectly [FAIL]
Failed Microsoft.OData.Tests.Json.JsonWriterAsyncTests.WritesJsonElementCorrectly [3 ms]
Error Message:
System.Text.Json.JsonReaderException : '0x00' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.
Stack Trace:
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
at System.Text.Json.Utf8JsonReader.Read()
at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
at Microsoft.OData.Tests.Json.JsonWriterAsyncBaseTests.WritesJsonElementCorrectly() in D:\a\1\s\test\FunctionalTests\Microsoft.OData.Core.Tests\Json\JsonWriterAsyncBaseTests.cs:line 237
--- End of stack trace from previous location ---
[xUnit.net 00:00:07.11] Skipping: Microsoft.OData.Edm.Tests (could not find dependent assembly 'Microsoft.OData.Edm, Version=8.0.0')
from odata.net.
Related Issues (20)
- ODataException is thrown when getting a worksheet range via Microsoft.Graph API HOT 7
- Nav prop on complex type returned from a collection
- Mitigate ArgumentOutOfRangeException when the typename in context URL is not fully qualified HOT 2
- Querying by primary key throws exception if element doesn't exist HOT 1
- EdmLib successfully parses type names with unbalanced parens HOT 1
- Issue with data conversion errors. HOT 5
- Remove `IContainerProvider` and pass the `IServiceProvider` directly to the message reader or writer HOT 4
- Remove `ODataMessageInfo` from the DI container
- ODL 8 breaking changes tracking
- re: CustomUriFunctions should not be static or irreversible
- Filter on nullable DateOnly seems not supported HOT 2
- Set license expression on nuget packages
- ODataException is thrown when getting a worksheet table rows via Microsoft.Graph API HOT 2
- Exception thrown when trying to create EdmTargetPath from string path that contains type casts HOT 1
- Scale facet value has wrong scaling
- Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.OData.Edm.Vocabularies.V1.CoreVocabularyModel' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058) ---> System.BadImageFormatException: Cannot load a reference assembly for execution.
- NullReference exception generated when using FilterClause.ApplyTo method with open properties in the filter query
- Microsoft.OData.Cli 0.3.0 enable-tracking no longer working
- Client - inefficient query generated from projection with only expansion HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odata.net.