Git Product home page Git Product logo

Comments (2)

habbes avatar habbes commented on August 26, 2024

@ElizabethOkerio could you share the error stack trace?

from odata.net.

habbes avatar habbes commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.