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

Crash on nodejs server when saving card #21

Closed
remonh87 opened this issue Apr 17, 2021 · 4 comments
Closed

Crash on nodejs server when saving card #21

remonh87 opened this issue Apr 17, 2021 · 4 comments
Assignees

Comments

@remonh87
Copy link
Member

remonh87 commented Apr 17, 2021

When trying to save a card off-session the server crashes

Unknown error occurred TypeError: Cannot read property 'id' of undefined
    at /lutter_stripe/stripe/example/server/src/index.ts:361:46
    at step /flutter_stripe/stripe/example/server/src/index.ts:33:23)
    at Object.next (/flutter_stripe/stripe/example/server/src/index.ts:14:53)
    at fulfilled (/flutter_stripe/stripe/example/server/src/index.ts:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
@jonasbark
Copy link
Member

I doubt it's caused by the server. Android or iOS? What's the POST body?

@remonh87
Copy link
Member Author

remonh87 commented Apr 17, 2021

It happens on Android. you can reproduce it on the main branch:

Repro1

  1. go to setup future payment and set it up. This works
  2. Click on 'Pay with saved card off-season'

Repro2

  1. Select card payment without webhooks

@jamesblasco
Copy link
Member

Mmm this is the example server from the react-native repo, I will check and we can add the issue there

@jonasbark
Copy link
Member

The answer is still missing on

What's the POST body?

Could it be caused by the latest changes regarding credit card handling an the backend needs updating as well?

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

3 participants