Results 1 to 2 of 2
  1. #1

    receiving error code 61 and error message "Expected 1 items but got 2"on swift client

    Hi , i am receiving an error on a raw mode subscription: [mode: RAW,
    items: ["NOTIFICACAO"],
    fields: ["id_notification", "cd_priority", "ds_title", "ds_body", "ds_action", "dh_notification", "notification_type"],
    dataAdapter: BOVESPA]
    the error says that I am sending two items, but on the subscription array, I am sending only one item.



  2. #2
    When a Subscription is configured using an ItemList or a FieldList—either through the setters setItems and setFields or by the constructor—the client verifies that the number of items and fields returned by the server matches the number of elements in the ItemList and FieldList. If there is a discrepancy, the client deletes the subscription and triggers the SubscriptionListener.onSubscriptionError listener with error code 61.


    The actual items and fields to which the subscription applies are determined by the Metadata Adapter methods getItems and getSchema. Therefore, in your case, you should examine these two methods to ensure they return exactly one item and seven fields, respectively.

 

 

Similar Threads

  1. Error message "Subscribe request come too late"
    By tomas.walek-ext@sgcib.com in forum General
    Replies: 4
    Last Post: January 12th, 2021, 05:38 PM
  2. Replies: 2
    Last Post: September 22nd, 2017, 08:51 AM
  3. Replies: 5
    Last Post: December 23rd, 2010, 08:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:22 PM.
Lightstreamer Logo