lunarway / openbanking

Repository for keeping track of issues related to Lunar's Open Banking APIs
https://developer.openbanking.prod.lunar.app/
1 stars 0 forks source link

Denmark - HTTP Status 500 when creating domestic transfer #57

Closed RafaCMendes closed 3 weeks ago

RafaCMendes commented 8 months ago

Hello,

We have noticed that for Denmark sometimes when creating a domestic transfer we are met with an http status 500 INTERNAL_SERVER_ERROR. Can you help us understand what was the cause for these cases?

Thanks in advance for your help.

Crevil commented 8 months ago

Hi 👋

All three requests were rejected due to the receiver title being too long. It can be at max 20 characters long. However, I can see that this is not documented in the specification, so we will get that fixed along with mapping the error to a more clear error response to you.

Crevil commented 8 months ago

I looked a bit further into our codebase and I can see that this might also be caused by the message field exceeding the 20-character limit.

dentych commented 8 months ago

We will look into this next week and deploy a fix 👍

facundofederico commented 3 weeks ago

Please remember to update the documentation regarding the length limit for title

facundofederico commented 3 weeks ago

I'm attempting to start a domestic payment and getting a 500 error.

This is the request:

Method: POST, RequestUri: 'https://openbanking.prod.lunar.app/aisp-pisp/payments/domestic-credit-transfer', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
  Accept: application/json
  Authorization: Bearer ory_at_R[...]JI
  traceparent: 00-1ec6a5c1552f5c2f5bad3d69b7d8cb67-8ae7d6fe70187de3-01
  Content-Type: application/json
  Content-Length: 273
}

This is the body:

{
  "redirectUrl": "https://localhost:5011/api/callback/pisp",
  "accountId": "4[...]a",
  "recipientBBAN": "**************",
  "amount": 36.75,
  "currency": "DKK",
  "instant": true,
  "message": "andel - ID: e23d0dc5",
  "title": "e23d0dc5 - Adidas Ca",
  "date": "2024-08-20"
}

Both the title and message are 20 characters long.

dentych commented 3 weeks ago

You are attempting to create a transfer with an actorID that does not have access to the account in question.