Почему я получаю эту ошибку в отслеживании API двигателя корабля? - PullRequest
0 голосов
/ 26 апреля 2019

Я пытаюсь внедрить модуль отслеживания в двигатель корабля. При создании URL-адреса фирменной страницы отслеживания я получаю следующую ошибку с кодом состояния 400.

Что означает эта ошибка?

"request_id": "0697e518-6309-4215-96c1-6ed294c1fc88",
  "errors": [
    {
      "error_code": "",
      "message": "trackingPageRequest.tracking_pages.branded_tracking_theme_guid: Cannot deserialize the current JSON object (e.g. {\"name\":\"value\"}) into type 'System.Collections.Generic.List`1[ShipEngine.Core.DTO.Themes.TrackingPage]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.\r\nPath 'tracking_pages.branded_tracking_theme_guid', line 1, position 49."
    }
  ]
...