Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-480

Can not create Cart of Commercetools from CartEndpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.3.2, 1.2.7
    • 1.3
    • None
    • None

    Description

      Steps to reproduce

      1.  Call create cart endpoint from magnolia rest api. See postman example ECOMMERCE-480.postman_collection.json
      2.  See log error and rest return 500

      .. Logs, screenshots, gifs...

      Expected results

      Cart should be created successfully

      Actual results

      See error log:

      2021-10-08 09:37:36,173 ERROR info.magnolia.rest.RestExceptionMapper            : Exception thrown executing REST endpoint, returning 500
      com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.ZonedDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: io.sphere.sdk.carts.CartImpl["createdAt"])
      
      {
          "error": {
              "code": "unknown",
              "message": "Java 8 date/time type `java.time.ZonedDateTime` not supported by default: add Module \"com.fasterxml.jackson.datatype:jackson-datatype-jsr310\" to enable handling (through reference chain: io.sphere.sdk.carts.CartImpl[\"createdAt\"])"
          }
      }
      

      Workaround

      Development notes

      • Upgrade io.sphere.x.sdk

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                aichimescu Andrei Ichimescu
                oanh.thai Oanh Thai Hoang
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 2d 1h
                      2d 1h