Ship Search VD03 returning MSGTYPE NOT ALLOWED

Comments

3 comments

  • Official comment
    Avatar
    Thanos Zelios

    Hi,

    Thank you for your post.
    The parameter /msgtype:{value}/ is not available for VD03.
    I believe according to your description that the parameter you are looking for is /protocol:{value}/ which allows you to receive different formats of response (XML, CSV, JSON, JSON objects).

    Hope that the above solves the issue you are encountering.

    Best,
    Thanos Zelios
    Data Support Engineer

    Comment actions Permalink
  • Avatar
    Hyundai Forklifts

    Hi Thanos,

    Thanks for your reply.

    I am aware that msgtype is not available for VD03, as I said in my post above, it is not listed in the documentation.

    The problem is that when I call the api method even without msgtype, I receive a response saying "MSGTYPE NOT ALLOWED"

    for example - note that I do NOT include msgtype in this call:

    https://services.marinetraffic.com/api/shipsearch/xxxxxxxxxxxxxxxx/shipname:seashark/

    returns

    <RESPONSE><STATUS><ERROR CODE="1b" DESCRIPTION="MSGTYPE NOT ALLOWED"/></STATUS></RESPONSE>

     

    example 2:

     

    https://services.marinetraffic.com/api/shipsearch/_service_key_/shipname:seashark/protocol:json

    {
    "errors": [
    {
    "code": "1b",
    "detail": "MSGTYPE NOT ALLOWED"
    }
    ]
    }

     

    regards,

     

    Dawson Brown

    0
    Comment actions Permalink
  • Avatar
    Thanos Zelios

    Hi Dawson,

    The reason that the API's response does not make sense is due to issue with its setup.

    I will send you a pm to address it.

    Best,
    Thanos Zelios
    Data Support Engineer

    0
    Comment actions Permalink

Please sign in to leave a comment.