What causes "Request Rejected: Cannot request existing view on streamId that is not opened"

jeffwilcox1
jeffwilcox1 Newcomer
edited December 2024 in ETA

Has anyone ever seen this error message?


"ERROR MESSAGE: Type :(Status) Closed Completed State: CLOSED StatusCode: 1 Text: "Request Rejected: Cannot request existing view on streamId that is not opened." Info: NOT_FOUND"

This is being generated on an application built with eta3.1.0.L1 and connecting to an ADS version 3.7.2.L1 .

Any idea what might be causing this?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @jeffwilcox1

    Thank you for reaching out to us.

    The status message is from ADS. I can replicate this error by using the view request without payload. The RSSL_RQMF_HAS_VIEW is set and the containerType is RSSL_DT_NO_DATA.

    <!-- Outgoing Message (Channel IPC descriptor = 320) -->
    <!-- Time: 18:37:54:557 -->
    <!-- rwfMajorVer="14" rwfMinorVer="1" -->
    <requestMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="6" containerType="RSSL_DT_NO_DATA" flags="0x446 (RSSL_RQMF_HAS_PRIORITY|RSSL_RQMF_STREAMING|RSSL_RQMF_HAS_QOS|RSSL_RQMF_HAS_VIEW)" qosDynamic="0" qosRate="2" qosTimeliness="1" priorityClass="1" priorityCount="1" dataSize="0">
    <key flags="0x7 (RSSL_MKF_HAS_SERVICE_ID|RSSL_MKF_HAS_NAME|RSSL_MKF_HAS_NAME_TYPE)" serviceId="5001" name="TRI" nameType="1"/>
    <dataBody>
    </dataBody>
    </requestMsg>

    <!-- End Message (Channel IPC descriptor = 320) -->
    <!-- Incoming Message (Channel IPC descriptor = 320) -->
    <!-- Time: 18:37:54:571 -->
    <!-- rwfMajorVer="14" rwfMinorVer="1" -->
    <statusMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="6" containerType="RSSL_DT_NO_DATA" flags="0x28 (RSSL_STMF_HAS_MSG_KEY|RSSL_STMF_HAS_STATE)" dataState="RSSL_DATA_SUSPECT" streamState="RSSL_STREAM_CLOSED" code="RSSL_SC_NOT_FOUND" text="Request Rejected: Cannot request existing view on streamId that is not opened." dataSize="0">
    <key flags="0x7 (RSSL_MKF_HAS_SERVICE_ID|RSSL_MKF_HAS_NAME|RSSL_MKF_HAS_NAME_TYPE)" serviceId="5001" name="TRI" nameType="1"/>
    <dataBody>
    </dataBody>
    </statusMsg>

    Typically, the view request will have an element list in the payload.

    <requestMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="6" containerType="RSSL_DT_ELEMENT_LIST" 
    flags="0x446 (RSSL_RQMF_HAS_PRIORITY|RSSL_RQMF_STREAMING|RSSL_RQMF_HAS_QOS|RSSL_RQMF_HAS_VIEW)" 
    qosDynamic="0" qosRate="2" qosTimeliness="1" priorityClass="1" priorityCount="1" dataSize="44">
    <key flags="0x7 (RSSL_MKF_HAS_SERVICE_ID|RSSL_MKF_HAS_NAME|RSSL_MKF_HAS_NAME_TYPE)" serviceId="5001" name="TRI" nameType="1"/>
    <dataBody>
    <elementList flags="0x8 (RSSL_ELF_HAS_STANDARD_DATA)">
    <elementEntry name=":ViewType" dataType="RSSL_DT_UINT" data="1"/>
    <elementEntry name=":ViewData" dataType="RSSL_DT_ARRAY">
    <array itemLength="2" primitiveType="RSSL_DT_INT">
    <arrayEntry data="22"/>
    <arrayEntry data="25"/>
    <arrayEntry data="30"/>
    <arrayEntry data="31"/>
    <arrayEntry data="1025"/>
    </array>
    </elementEntry>
    </elementList>
    </dataBody>
    </requestMsg>

    The containerType is RSSL_DT_ELEMENT_LIST.

    Please check how you encode the view request message.

  • Thanks Jirapongse