question

Loic_Majoufre avatar image
Loic_Majoufre asked

Blurred error message when invalid requests

Hello,

some api's returns when a problem occurred are blur
For example, the api instrument
https://api.fusionfabric.cloud/investment-management/reporting/v1/reports/Instruments
whitout body (yes, it's stupid for a POST request, but it's an example)

Another example is the exchange rates api if a currency unknow is post (for exemple baseCurrency=EUR2 )

Response : constraint violation
some api return "oops, Something is wrong !"

this type of response does not explain the problem...

api
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Szymon Patacz avatar image
Szymon Patacz answered

Hello Loic,


As you might noticed some of Fusion Invest APIs (like Exchange Rates) are still marked as BETA so there is room for improvement ;)

I will contact API creators and forward them the issue you stumbled upon.

We will provide more detailed answer once the issue is fixed I think.

Thank you for reporting your concerns.


Best Regards,

Szymon

10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

jkabuya avatar image
jkabuya answered

Hello Loic,

The API is designed to reply a custom message only if the currency is wrong but still match a certain pattern.

For example if you put a combination of 2 or 3 random letter like "ABC", it will return "Cannot find currency ABC ".

But if the combination doesn't respect the pattern, putting a number in the combination or adding more character, it will return "Constraint Violation".

I hope that this explanation give you more understanding.

Thank you for your reporting.


Regards,

Jérémie Kabuya

10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.