API: Internal Server Error 500
BastiaanMaster
- Edited
@MasonChase#91135 Good morning!
Maybe you can post a code-snippet of the request?
MasonChaseRookie
- Edited
Yes, I'm using SDK, the code snippet is coming in a second
try
{
string ApiKey = JObject.Parse(body).Value<string>("ApiKey");
ApiContext apiContext = _oAuth.SetUpApiContext(ApiKey);
var csvRequest = CustomerStatementExport.Create(
"CSV",
"2019-05-01",
DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"),
null,
"UK_US"
);
BunqResponse<CustomerStatementExport> csv = CustomerStatementExport.Get(csvRequest.Value);
}
catch (Exception e)
{
_logger.LogError(e.ToString());
throw new Exception(e.ToString());
}
@MasonChase#91135 I use sdk c#
BastiaanMaster
@MasonChase#91139 Looks like you reported this issue before?
This topic: https://together.bunq.com/d/12352-api-getting-user-statement
BastiaanMaster
@MasonChase#91139 You're using an oAuth API-key (token)? With an oAuth token you don't have access to the statement-export endpoint.
You can generate a normal Sandbox API-key via the sandbox-user endpoint: https://doc.bunq.com/#/sandbox-user/Create_SandboxUser
MasonChaseRookie
@Bastiaan#91140
This is a new issue started this morning on bunq server,
I am making an API call (not an oauth call).
There was no problem just 30 minutes ago. and I am getting the same error on bunqDesktop
BastiaanMaster
@MasonChase#91143 That's strange indeed. Can you maybe also try "PDF" as export-type?
BastiaanMaster
- Edited
@MasonChase
I've reported this to a developer at bunq, he can simulate this issue in the Sandbox environment and looking into it.
MasonChaseRookie
Thanks a lot.
I'm waiting for any response
NielsRookie
- Edited
@MasonChase We're currently looking into the case. As soon as we have updates about it, I'll make sure to let you know right away 🙂👍
NielsRookie
- Edited
@MasonChase,
Long story short: We found the cause of the bug and we also found a solution for it 😄.
We ran some tests and we figured out that there was something wrong on our Sandbox server. The server which serves our apps was not affected. Anyhow, we applied a solution for the issue and it should be fixed right now!
Thank you for reporting the issue and have a great day! 🌈
Thanks for your attention
ArjanRookie
- Edited
Hi All,
ApiContext.CreateForPsd2() (sandbox) results in a Internal Server Error (500) for the last few hours,
Can you help me out please,
Thanks