SUBSCRIPTION_LIMIT_EXCEEDED despite closing the stream nicely - Cannot unsubscribe!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DMarshall
    Junior Member
    • Mar 2025
    • 1

    #1

    SUBSCRIPTION_LIMIT_EXCEEDED despite closing the stream nicely - Cannot unsubscribe!

    Hello - During streaming app development with betfairlightweight I accidentally called marketSubscription with :

    Code:
    "marketFilter":{"market_ids":[]}
    i.e an empty set<String> for market_ids ...which according to the docs will subscribe my stream to EVERY market. This is now resulting in every subsequent subscription request receiving the response ::

    Code:
    Raw streaming data: {'op': 'status', 'id': 6, 'statusCode': 'FAILURE', 'errorCode': 'SUBSCRIPTION_LIMIT_EXCEEDED', 'errorMessage': 'trying to subscribe to 23305 markets whereas max allowed number was: 200', 'connectionClosed': False, 'connectionId': '205-090525054510-53584'}
    Problem is - the API-NG docs do not describe how to tell the BF servers to drop the subscription. My attempts to 'unsubscribe' have comprised one-by-one opening (in a thread) a stream with incrementing unique_id (from 0 to 15) and holding it open for 4 seconds and then neatly closing it with stream.stop() - but the problem persists.

    Please help me to cancel these 23305 subscriptions.

    Many Thanks.
  • bfexplorer
    Senior Member
    • Sep 2018
    • 204

    #2
    You just close streaming connection, so the tcp socket.

    Comment

    Working...
    X