#CMarabate - sample issue

1 messages · Page 1 of 1 (latest)

wintry chasm
#

Hello, did you modify the source code here before seeing this error or is this the vanilla sample?

vast star
#

I will double check but I am pretty sure I didn't change anything. If I did, it was something I changed after already seeing this error in an attempt to fix it.

#

Oh I changed it to use the US graphql endpoint for Fauna...

#

But that is needed for me I think

#

But that is it

wintry chasm
#

Is is possible that you modified anything related to a redirect URL or a return URL in the javascript for that manage subscription link?

vast star
#

Nope, I just checked all the changes I made and that was all I changed. So I am guessing it must be something I need to fix in my Stripe Dashboard or something?

#

When I spin it up locally and click the Manage Subscription my terminal tells me...

Request from ::1: POST /.netlify/functions/create-manage-link
{"level":"error","message":"End - Error:"}
{"errorMessage":"Cannot read properties of undefined (reading 'getUserByNetlifyID')","errorType":"TypeError","level":"error","stackTrace":["Object.exports.handler (C:\\Users\\Owner\\_Dev\\_Sites\\_RaidChamps\\netlify-stripe-subscriptions\\functions\\create-manage-link.js:20:36)","processTicksAndRejections (node:internal/process/task_queues:96:5)"]}
Response with status 500 in 857 ms.
wintry chasm
#

It looks like at some point some javascript is trying to make a URL but it is not filling out the URL properly and is instead putting the string [Object, object]. If you didn't modify anything it actually probably will be better to submit this as a github issue. When you saw the greyed out button did it say anything as to why you couldn't submit?

vast star
#

It said to be sure to Read the Code of Conduct but I clicked the link and could not find anywhere to mark that I read it or anything like that. I still have it up here is what it looks like...

wintry chasm
#

Can you try filling out the "Title" field as well?

vast star
#

LOL

#

I'm an idiot lol

#

Thanks I will submit it 🙂

wintry chasm
#

Welp at least we figured it out eventually. That is probably the first thing I should have asked.

#

Good luck figuring this one out!