Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating Non-personal User Attributes with Kafka adapter #2366

Open
ardatov opened this issue Feb 26, 2024 · 1 comment
Open

Error creating Non-personal User Attributes with Kafka adapter #2366

ardatov opened this issue Feb 26, 2024 · 1 comment

Comments

@ardatov
Copy link

ardatov commented Feb 26, 2024

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!

@simonredfern
Copy link
Member

simonredfern commented Feb 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants