#fld00d_api

1 messages ยท Page 1 of 1 (latest)

fervent axleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1308878317910491237

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tardy edge
#

Hello

#

Interesting... yeah I would expect that to be returned in seconds instead of ms here.

#

Give me a few minutes to look

jade atlas
#

Much appreciated!

tardy edge
#

@jade atlas is the issue just that your code is expecting it to be in seconds and thus you aren't decoding correctly?

jade atlas
#

It's actually in RequestService.cs on your NuGet package

public virtual Task<Request> CreateAsync(RequestCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
        {
            return this.RequestAsync<Request>(BaseAddress.Api, HttpMethod.Post, $"/v1/forwarding/requests", options, requestOptions, cancellationToken);
        }
tardy edge
#

Ah the SDK is erroring due to this?

jade atlas
#

yeah, let me grab the stack trace for you after decompilign the dll

tardy edge
#

That'd be great, thanks.

jade atlas
#

private T ProcessResponse<T>(StripeResponse response, ApiMode apiMode)
where T : IStripeEntity

Inside of LiveApiRequestor.cs is where the error is thrown, specifically this line
obj = StripeEntity.FromJson<T>(response.Content, this.jsonSerializerSettings);

tardy edge
#

Okay got it.

#

I'll file a bug report internally and request that we get this fixed up here.

#

I assume that report wasn't from you, correct?

jade atlas
#

correct, wasn't me...I had searched but failed to see it, guess I used the wrong key words, sorry about that

tardy edge
#

No problem at all

#

Appreciate you reporting it here

#

But also glad that a fix is already underway

jade atlas
#

Are we allowed to offer PR's against the main branch to expedite a fix, or is this 100% maintained internally?

tardy edge
jade atlas
#

thanks! I'll do that and then I'll be unblocked to test