# Query params not properly sent in http and dhis2?

**URL:** <https://community.openfn.org/t/query-params-not-properly-sent-in-http-and-dhis2/447>\
**Category:** Adaptors & Templates\
**Created:** [June 11, 2024, 10:06am UTC](https://community.openfn.org/t/query-params-not-properly-sent-in-http-and-dhis2/447 "2024-06-11T10:06:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylordowns2000](https://community.openfn.org/user_avatar/community.openfn.org/taylordowns2000/32/165_2.png) [@taylordowns2000](https://community.openfn.org/u/taylordowns2000)\
**Post date:** [June 11, 2024, 10:06am UTC](https://community.openfn.org/t/query-params-not-properly-sent-in-http-and-dhis2/447/1 "2024-06-11T10:06:37Z")

</div>

Hey @joe and @mtuchi , I’m here with @josephatjulius from UDSM DHIS2 Lab in Tanzania and Carlos from HISP Mozambique — just spoke to Joe on the phone but wanted to document this in the public forum in case anyone else runs into and knows a solution or wants to propose a fix.

The issue _seems to be_ that query params aren’t being handled proprly on requests to dhis2 from the http adaptor or the dhis2 adaptor. (Note that these guys are running their own OpenFn instance and it’s on v2.5.4)

Debug:

```sh
VER Versions:
    ▸ node.js 18.17.1
    ▸ worker 1.1.8
    ▸ @openfn/language-http 6.2.2

```

and

```sh
VER Versions:
    ▸ node.js 18.17.1
    ▸ worker 1.1.8
    ▸ @openfn/language-dhis2 4.0.5

```

They’re using DHIS2 40.3.2 - here’s the link as we expect it to respond: [https://play.im.dhis2.org/stable-2-40-3-2/api/40/tracker/trackedEntities/qv0j4JBXQX0.json?program=ur1Edk5Oe2n&fields=](https://play.im.dhis2.org/stable-2-40-3-2/api/40/tracker/trackedEntities/qv0j4JBXQX0.json?program=ur1Edk5Oe2n&fields=)\*

---

<div class="post-metadata">

**Author:** ![joe](https://community.openfn.org/user_avatar/community.openfn.org/joe/32/75_2.png) [@joe](https://community.openfn.org/u/joe)\
**Post date:** [June 12, 2024, 9:42am UTC](https://community.openfn.org/t/query-params-not-properly-sent-in-http-and-dhis2/447/2 "2024-06-12T09:42:37Z")

</div>

Hi! @taylordowns2000 and I have already talked about this, but just for the record:

There was an issue in the HTTP adaptor (actually in the new common http helpers, so it’ll affect some other adaptors too) where query parameters embedded directly in the URL were **not** getting sent on.

So requests like this:

```auto
get('www.blah.com/some/resource?count=1')

```

Will silently ignore the `?count=1` bit and not send that to the server.

Whoops!

That’s now fixed in http 6.2.3 and any adaptor based on common 1.13.5

---

<div class="post-metadata">

**Author:** ![josephatjulius](https://community.openfn.org/user_avatar/community.openfn.org/josephatjulius/32/187_2.png) [@josephatjulius](https://community.openfn.org/u/josephatjulius)\
**Post date:** [June 12, 2024, 10:09am UTC](https://community.openfn.org/t/query-params-not-properly-sent-in-http-and-dhis2/447/3 "2024-06-12T10:09:52Z")

</div>

Hello @joe, @taylordowns2000 and the team

We are happy for the close support for the issue we faced.  
As you have seen was more of us not following the correct syntax.

Here is the [link](https://github.com/udsm-dhis2-lab/shared-openfn-workflow-examples/blob/main/DHIS2/get-tracked-entities.js) to the sample codes in case someone face similar syntax issue.
