OBP-API icon indicating copy to clipboard operation
OBP-API copied to clipboard

Error creating Non-personal User Attributes with Kafka adapter

Open ardatov opened this issue 11 months ago • 1 comments

Hello, I connected the Kafka adapter and implemented the backend, for example I process the /obp/v5.1.0/adapter method and successfully see its result in the OBP. But some methods, for example POST /obp/v5.1.0/users/400637d0-745f-4ceb-9871-67cf5113ef3c/non-personal/attributes { "name":"W_LEVEL", "type":"STRING", "value":"90"} return the following error:

{
     "code": 400,
     "message": "OBP-50200: Connector cannot return the data we requested. <- OBP-10010: Not Implemented setUnimplementedError$ Please check `Get Message Docs`endpoint and implement the process `obp.setUnimplementedError$` in Adapter side."
}

What does "Not Implemented" mean? Do I need to fork the OBP Api and implement this method (and many similar ones)? Or was there another solution? Thank you!

ardatov avatar Feb 26 '24 12:02 ardatov

Hi @ardatov

Of course you are free to fork and implement - Alternatively you can use the Star connector (set connector=star in Props) and then use the Method Routings endpoints to control which functions point to which connector.

i.e. if you don't need to send everything to your backend, you can store certain data in the OBP database.

When using Star Connector, the default method routing is Mapped which just means the local OBP database, so then you would use the Method Routings endpoints to selectively route the messages you want to go to your CBS to go via the Kafka connector and the other messages to go to the OBP database.

https://apiexplorer-ii-sandbox.openbankproject.com/operationid/OBPv3.1.0-createMethodRouting?version=OBPv5.1.0

Also search for Method Routing in the Glossary here: https://apiexplorer-ii-sandbox.openbankproject.com/glossary There are some videos about Method Routing listed there.

Your Props should include:

connector=star

starConnector_supported_types = mapped,kafka_vSept2018

If you'd like commercial support, please connect with us on our Rocket Chat or email.

simonredfern avatar Feb 26 '24 14:02 simonredfern