#rat_error

1 messages · Page 1 of 1 (latest)

glass streamBOT
#

👋 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/1426081488423751702

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

thorn arrow
#

FYI I trigger the collectFinancialConnectionsAccounts function from the client using stripe.js

spice pilot
#

hello! I think my colleague requested that you try and find the request id for the collectFinancialConnectionsAccounts function, were you able to find that request id?

thorn arrow
#

I actually was not, meant to respond in that thread but could not. So stripe.js seems to obfuscate the request or something because I'm unable to see it in my network calls in chrom dev tools

#

Do you know maybe how to grab that?

spice pilot
thorn arrow
#

acct_1SCPCeCr52bUjTC1

spice pilot
#

when did you trigger the request? like in the past half hour?

thorn arrow
#

yes

#

i can trigger it again rn if needed

spice pilot
#

it's okay, let me try and track it down but will let you know if i need you to trigger it again. But I'm taking a look at that account you shared, and I don't see any request to create the financial connection session.

#

can you share the corresponding request id where you created the financial connection session in your backend server?

thorn arrow
#

would sharing the session id help? sorry but cloudflare is really bad about showing logs in the observability tab. i'm kinda new to it as well so my bad

#

basically can't find that either

spice pilot
#

yeah, the session id would work too

thorn arrow
#

fcsess_16irtep8y

spice pilot
#

that doesn't look valid...

#

it's a bit too short

thorn arrow
#

it's in sandbox mode for context

#

like the publishable and secret keys i'm using in the server are from sandbox mode

spice pilot
#

To give you an example, when I created a Financial Connection Session, this is how the ID looks like fcsess_1SGZLhJQtHgRImA7Bwq5yYlH

#

this is what i meant by your id looks too short

thorn arrow
#

hmm...

#

so this is the object i'm receiving in my server, and am passing back to my client:

{
    "id": "fcsess_16irtep8y",
    "object": "financial_connections.session",
    "client_secret": "fcsess_e2im85l6y_secret_b4n523tt9",
    "permissions": [
        "transactions",
        "balances"
    ],
    "account_holder": {
        "type": "customer",
        "customer": "test-user-123"
    },
    "filters": {
        "countries": [
            "US"
        ]
    },
    "return_url": "http://localhost:5174/financial-connections/return"
}
#

i'm working with an ai agent and made sure to check this is not some dummy object generated by my code, this is returned from stripe

#

so one more thing i wanted to understand was whether i'm actually set up to work with financial sessions. i've signed up and am able to see settings for my financial connections modal in my dashboard. am not able to see anything else though

spice pilot
#

i can confirm that that ID definitely is too short, searching for it internally doesn't return a match for any such object

thorn arrow
#

makes sense

#
const session = await stripeService.createFinancialConnectionsSession({
      account_holder: {
        type: 'customer',
        customer: userId
      },
      permissions: permissions,
      filters: {
        countries: ['US']
      },
      return_url: returnUrl || 'https://budget-helper-dev.nsx-port.workers.dev/financial-connections/return'
    });

this is the code that retrieves that object

#

where stripeService is as follows:

const stripeService = new StripeService(env.STRIPE_SECRET_KEY);
spice pilot
#

Sorry, but I think the next step here is to try and find the corresponding request id for where you created the Financial Connection Session

#

I can't find any creation request in the account you shared and that object id is too short i.e. invalid, so I can't find the originating request too

thorn arrow
#

lmao emotes

#

bro laughing at my tragedy

spice pilot
#

if you find the request ID, I can track down the actual request and help you find the actual Financial Connection ID to compare

thorn arrow
#

yes i'll work on that

#

can we keep this thread open