-
May 8th, 2024, 09:50 PM
#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.
-
May 9th, 2024, 07:40 AM
#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
-
By tomas.walek-ext@sgcib.com in forum General
Replies: 4
Last Post: January 12th, 2021, 05:38 PM
-
By codesroots in forum Client SDKs
Replies: 2
Last Post: September 22nd, 2017, 08:51 AM
-
By chanro4 in forum Client SDKs
Replies: 5
Last Post: December 23rd, 2010, 08:34 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:42 AM.
Bookmarks