My Products
Help
olesko
CONTRIBUTOR ***

Invalid response from KitSpecifications controller

by olesko

Hi,

 

We are receiving very strange responses from KitSpecifications controller. In our own test company it looks according to documentation, but in our client's test company we are getting the following.

 

{{
"pageNumber": 1,
"pageSize": 5000,
"totalCount": 1,
"records": [
{
"kitInventoryID": "10256 ",
"revision": "01",
"description": "test",
"isActive": true,
"allowComponentAddition": false,
"isNonStock": true,
"stockComponentLines": [
{
"lineNbr": 1,
"componentID": "10 ",
"componentQty": 2.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 1"
},
{
"lineNbr": 2,
"componentID": "11 ",
"componentQty": 3.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 2"
}
]
}
]
}}
ChildrenTokens: Count = 4
Count: 4
First: {"pageNumber": 1}
HasValues: True
Last: {"records": [
{
"kitInventoryID": "10256 ",
"revision": "01",
"description": "test",
"isActive": true,
"allowComponentAddition": false,
"isNonStock": true,
"stockComponentLines": [
{
"lineNbr": 1,
"componentID": "10 ",
"componentQty": 2.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 1"
},
{
"lineNbr": 2,
"componentID": "11 ",
"componentQty": 3.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 2"
}
]
}
]}
[Next]: Nothing
Parent: Nothing
Path: ""
Previous: Nothing
Root: {{
"pageNumber": 1,
"pageSize": 5000,
"totalCount": 1,
"records": [
{
"kitInventoryID": "10256 ",
"revision": "01",
"description": "test",
"isActive": true,
"allowComponentAddition": false,
"isNonStock": true,
"stockComponentLines": [
{
"lineNbr": 1,
"componentID": "10 ",
"componentQty": 2.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 1"
},
{
"lineNbr": 2,
"componentID": "11 ",
"componentQty": 3.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 2"
}
]
}
]
}}

 

I've marked the section we were expecting in blue.

 

Is that a bug in the VNA?

 

Best regards,

Oleg

8 REPLIES 8

by Magnus Johnsen

Hi,

 

We are not able to reproduce this in our tests:

2020-09-10 10_00_35-Postman.png

From where are you doing these requests?

 

olesko
CONTRIBUTOR ***

by olesko

As I said in my initial post, we are getting this strange response in our customer's company.

Company ID: 2951933

 

In our own company this is working fine.

The call is made from a C# client.

olesko
CONTRIBUTOR ***

by olesko

Actual call and result:

 

https://integration.visma.net/API/controller/api/v1/KitSpecifications?kitInventoryID=10256&revisionI...


{
"pageNumber": 1,
"pageSize": 5000,
"totalCount": 1,
"records": [
{
"kitInventoryID": "10256 ",
"revision": "01",
"description": "test",
"isActive": true,
"allowComponentAddition": false,
"isNonStock": true,
"stockComponentLines": [
{
"lineNbr": 1,
"componentID": "10 ",
"componentQty": 2.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 1"
},
{
"lineNbr": 2,
"componentID": "11 ",
"componentQty": 3.0,
"uom": "STYCK",
"allowComponentQtyVariance": false,
"disassemblyCoeff": 1.0,
"allowComponentSubstitution": false,
"description": "Komponent 2"
}

]}]}

 

I've even noticed that we are getting the tag kitInventoryID instead of kitItemID as defined in the Swagger documentation.

by Magnus Johnsen

Alright, thank you. We will open a case with the developers to have a look at this.

This case is still being investigated and we will provide you with more information as soon as we hear any progress in the case. 

Hi,

The development team has not been able to reproduce this.

What enviroment are you getting this response in? And are you testing both companies in the same enviroment?

Bitlog
CONTRIBUTOR *

by Bitlog

Hi,

We get this in our customer's environment as mentioned before. Company ID: 2951933

Company 1. 

by Magnus Johnsen

Do you get the same result if you are making the query via swagger/postman?