My Products
Help

Getting error on get inventory based on inventorynumber with .

by Steinar Møller

Trying 2 GET inventory/{inventoryNumber}, with the specific number RIV2333.5790.1.6.
All other inventory numbers are retrieved from the same client. 
Suppose there are an issue with "." in the end of the number, since we getting same error when testing.

{"ExceptionType":"IPPException","ExceptionMessage":"","ExceptionFaultCode":"5519","ExceptionMessageID":"5519_94010350-0a61-4c2f-a1cb-7689e697066d","ExceptionDetails":""} 

4 REPLIES 4
Accepted solution
Yıldırım
VISMA

by Yıldırım

@Steinar Møller wrote:

Trying 2 GET inventory/{inventoryNumber}, with the specific number RIV2333.5790.1.6.
All other inventory numbers are retrieved from the same client. 
Suppose there are an issue with "." in the end of the number, since we getting same error when testing.



InventoryNumber parameter can also be used. 
InventoryNumber_param.png

by Magnus Johnsen

Hi,

 

As "." is a reserved URL character, you need to use the b64 method that was added earlier this year.

Please have a look at this article and let us know if it helped you: 

Method for getting resources with reserved characters - B64URL Encoding

Thank you. 

adrianm
PARTNER

by adrianm

> As "." is a reserved URL character, you need to use the b64 method that was added earlier this year.

 

No, "." is not a reserved character and there is no problem in the API if the dot is inside the path. A dot at the end causing problems seems more like a configuration problem on the server.

 

base64 solves it of course but it should be solved on the server instead of making it a customer problem.

Hi,
Thanks, then we will fix this.

Steinar