# Incomplete Response JSON Return

**URL:** <https://forum.alumio.com/t/incomplete-response-json-return/457>\
**Category:** Incoming Configuration\
**Created:** [February 23, 2023, 2:24pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457 "2023-02-23T14:24:55Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 23, 2023, 2:24pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/1 "2023-02-23T14:24:55Z")

</div>

Hello @Alumio_Bot, i really don’t know why the incoming configuration does not return a complete json response, some information seems to not be return along with the data, but when tried the same thing on postman i got a complete json response returned.  
Really need assistant here

---

<div class="post-metadata">

**Author:** ![Alumio\_Bot](https://forum.alumio.com/user_avatar/forum.alumio.com/alumio_bot/32/1824_2.png) [@Alumio\_Bot](https://forum.alumio.com/u/Alumio_Bot)\
**Post date:** [February 23, 2023, 3:01pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/2 "2023-02-23T15:01:53Z")

</div>

Let’s see what I can do.  
Do you not get a complete response in the task or in the logs?

And could you post a Postman screenshot and an Alumio screenshot?

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 23, 2023, 3:09pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/3 "2023-02-23T15:09:28Z")

</div>

Okay I will do that right away

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 23, 2023, 3:11pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/4 "2023-02-23T15:11:02Z")

</div>

Incomplete on task, entity transformer and the incoming configuration logs

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 23, 2023, 3:23pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/5 "2023-02-23T15:23:42Z")

</div>

![Screenshot 2023-02-23 at 16.21.52](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/80ca9eadcbcc6c4486d9b689a16385cecdec0ee3.png)

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 23, 2023, 3:23pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/6 "2023-02-23T15:23:57Z")

</div>

![Screenshot 2023-02-23 at 16.21.31](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/a9243c5fa5333c2a360892e8286df893798b7911.png)

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 23, 2023, 3:25pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/7 "2023-02-23T15:25:05Z")

</div>

The first image represent postman response and the second image represent the response form Alumio

---

<div class="post-metadata">

**Author:** ![Alumio\_Bot](https://forum.alumio.com/user_avatar/forum.alumio.com/alumio_bot/32/1824_2.png) [@Alumio\_Bot](https://forum.alumio.com/u/Alumio_Bot)\
**Post date:** [February 23, 2023, 3:28pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/8 "2023-02-23T15:28:03Z")

</div>

Interesting, so results[0].basic is missing in the Alumio task.  
Could you PM me the environment name and double check if [r.lubbers@alumio.com](mailto:r.lubbers@alumio.com) has been added as a user?

Then I can take a quick look.  
Maybe the data hasn’t been requested? (looking at the postman url)

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 23, 2023, 3:31pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/9 "2023-02-23T15:31:52Z")

</div>

alright then i will ping you right away

---

<div class="post-metadata">

**Author:** ![Alumio\_Bot](https://forum.alumio.com/user_avatar/forum.alumio.com/alumio_bot/32/1824_2.png) [@Alumio\_Bot](https://forum.alumio.com/u/Alumio_Bot)\
**Post date:** [February 23, 2023, 4:14pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/10 "2023-02-23T16:14:54Z")

</div>

Really interesting.  
When trying it in [their swagger doc](https://platform.beauhurst.com/_api/guide/) i get the following.

 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/266de80cbcb45f0b514981b22c35d0bf6e000b78.png)

Doing similar in the Alumio Request Uri I get the following.  
(Limit and company\_id have been set in the request parameters)  
 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/53cfc368ae41ec111e85ac748970536b193a2e12.png)

```auto
GET /_api/v1/companies?includes=registration_date&limit=2&company_ids%5B0%5D=1234

```

You can see it only got the last ‘includes’ value, something that does not happen on swagger.

When doing the following I get a different result:  
 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/optimized/1X/b5d956fe17fab851d2e6fe0150dc11a698efd76e_2_690x67.png)

 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/82870bb96869ffa82a292c3762f6b9b12a185836.png)

```auto
GET /_api/v1/companies?limit=2&includes%5B0%5D=name&includes%5B1%5D=registered_name&includes%5B2%5D=registration_date&includes%5B3%5D=companies_house_id&includes%5B4%5D=beauhurst_url&includes%5B5%5D=region&includes%5B6%5D=postcode&company_ids%5B0%5D=1234

```

But the response does not contain the ‘basic’ object in the result at all.

It strikes me that **they set the ‘includes’ query parameter several times**.  
It makes sense that it’ll constantly get overwritten.  
That’s why the final value remains.

It strikes me that it does work in Swagger and Postman.  
In my head, this way should work in neither.

It has however been a long day for me atm.

[@Alumio\_support](https://forum.alumio.com/groups/alumio_support) what do you think?

---

<div class="post-metadata">

**Author:** ![steven](https://forum.alumio.com/user_avatar/forum.alumio.com/steven/32/214_2.png) [@steven](https://forum.alumio.com/u/steven)\
**Post date:** [February 23, 2023, 8:07pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/11 "2023-02-23T20:07:46Z")

</div>

There are several ways to send multiple values for the same key. Mostly you will see one of these two:  
`/url?setting=1&setting=2&setting=3`  
or  
`/url/setting=1,2,3`  
Depending on the API you have to conform to one of these.

In this case the even supply an example using the first method:

```auto
https://platform.beauhurst.com/_api/v1/companies?company_ids=05998540&includes=name&includes=registered_name&includes=registration_date&includes=other_trading_names&includes=companies_house_id&includes=employee_count_range&includes=last_modified_date&includes=beauhurst_url&includes=website&includes=tracked_status&includes=started_tracking_at&includes=company_status&includes=is_sme&includes=sectors&includes=top_level_sector_groups&includes=buzzwords&includes=latest_stage_of_evolution&includes=stage_of_evolution_transitions&includes=description&includes=tracking_reasons&includes=target_markets&includes=founder_female_percentage&includes=n_fundraisings&includes=total_amount_fundraisings&includes=n_grants&includes=total_amount_grants&includes=latest_valuation&includes=country&includes=lep&includes=region&includes=postcode&includes=address&includes=emails&includes=telephone&includes=year_end_date&includes=turnover&includes=ebitda&includes=total_assets&includes=number_of_employees&includes=cash&includes=total_liabilities&includes=net_assets&includes=research_and_development&includes=export&includes=twitter_handle&includes=instagram_handle&includes=pinterest_handle&includes=facebook_url&includes=googleplay_url&includes=itunes_url&includes=linkedin_url

```

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 24, 2023, 5:24am UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/12 "2023-02-24T05:24:19Z")

</div>

I still don’t understand why our Alumio api agent tool isn’t providing the included params; is this a result of Beauhurst restricting some data to Alumio, do you think?

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [February 24, 2023, 3:32pm UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/13 "2023-02-24T15:32:21Z")

</div>

Hi @abubakar

Feel free to send me a DM about which environment you’re currently working on and the credentials to access the platform API. I will be happy to help you with your issue.

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [February 27, 2023, 3:43am UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/14 "2023-02-27T03:43:48Z")

</div>

Hi @abubakar I’ll have a look today and will get back to you once I have an update.

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [February 27, 2023, 6:29am UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/15 "2023-02-27T06:29:17Z")

</div>

Hi @abubakar,

I found a way how to submit the request to Beauhurst. You can clear the query parameters out of the **Request URI** and put them in the **Request parameters** field in **string** mode, such as below.

 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/3ce907da6dc032ce4df93e29f1ee8278e2294881.png)

Please give it a try.

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 27, 2023, 6:50am UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/16 "2023-02-27T06:50:45Z")

</div>

alright i will do now

---

<div class="post-metadata">

**Author:** ![abubakar](https://forum.alumio.com/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@abubakar](https://forum.alumio.com/u/abubakar)\
**Post date:** [February 27, 2023, 7:00am UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/17 "2023-02-27T07:00:54Z")

</div>

🕺🏼🕺🏼🕺🏼 thank you @Gugi , @Alumio_Bot , and @steven.

i am now getting full response

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [February 27, 2023, 7:29am UTC](https://forum.alumio.com/t/incomplete-response-json-return/457/18 "2023-02-27T07:29:09Z")

</div>

@abubakar Glad to hear that the suggestion works well.

Have a great day!
