# Live Query subscription request being sent twice

**URL:** <https://community.parseplatform.org/t/live-query-subscription-request-being-sent-twice/818>\
**Category:** Parse Server 📡\
**Tags:** live-query\
**Created:** [September 12, 2020, 7:57am UTC](https://community.parseplatform.org/t/live-query-subscription-request-being-sent-twice/818 "2020-09-12T07:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SynthD](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/f1d935/32.png) [@SynthD](https://community.parseplatform.org/u/SynthD)\
**Post date:** [September 12, 2020, 7:57am UTC](https://community.parseplatform.org/t/live-query-subscription-request-being-sent-twice/818/1 "2020-09-12T07:57:28Z")

</div>

Hi all

My subscription request being sent twice and I only want 1 callback how do i resolve this?

Code:

ParseLiveQueryClient parseLiveQueryClient = null;

```
    try {
        parseLiveQueryClient = ParseLiveQueryClient.Factory.getClient(new URI("URL"));
    } catch (URISyntaxException e) {
        e.printStackTrace();
    }

    if (parseLiveQueryClient != null) {
        ParseQuery<ParseObject> parseQuery = new ParseQuery("Post");

        SubscriptionHandling<ParseObject> subscriptionHandling = parseLiveQueryClient.subscribe(parseQuery);

        subscriptionHandling.handleEvent(SubscriptionHandling.Event.CREATE, new SubscriptionHandling.HandleEventCallback<ParseObject>() {
            @Override
            public void onEvent(ParseQuery<ParseObject> query, final ParseObject object) {
                Handler handler = new Handler(Looper.getMainLooper());
                handler.post(new Runnable() {
                    public void run() {
                        Log.d(TAG, "run: LiveQuery Incoming");
                        Date date = object.getCreatedAt();
                        DateFormat df = new SimpleDateFormat("EEE, HH:mm:ss d MMM yyyy ");
                        String reportDate = df.format(date);
                        ParseFile file = (ParseFile) object.get("IMG");
                   
                    }
                });
            }
        });
    }
```

---

<div class="post-metadata">

**Author:** ![uzaysan](https://community.parseplatform.org/user_avatar/community.parseplatform.org/uzaysan/32/59_2.png) [@uzaysan](https://community.parseplatform.org/u/uzaysan)\
**Post date:** [September 12, 2020, 8:37am UTC](https://community.parseplatform.org/t/live-query-subscription-request-being-sent-twice/818/2 "2020-09-12T08:37:43Z")

</div>

I believe live query subscription is a POST request. So if you have poor connection or for some other reason request didn’t get any response, sdk will automatically send same request again.

---

<div class="post-metadata">

**Author:** ![SynthD](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/f1d935/32.png) [@SynthD](https://community.parseplatform.org/u/SynthD)\
**Post date:** [September 14, 2020, 6:25am UTC](https://community.parseplatform.org/t/live-query-subscription-request-being-sent-twice/818/3 "2020-09-14T06:25:21Z")

</div>

The connection is fine. I have the same subscription in a different class would both of them count as 2 requests meaning I would get 2 responses on each?
