#jeremy_nodejs-beginner

1 messages ยท Page 1 of 1 (latest)

warm heartBOT
#

๐Ÿ‘‹ 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/1230652823063101441

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

thin duneBOT
paper arch
#

Hey @dry blaze ! This error looks to come from your own code/server here so it's going to be tough to debug without a lot more details about your environment, programming language, how experienced you are building a website, etc.

dry blaze
#

mainly just copy pasted

#

โ”œโ”€โ”€ express@4.19.2
โ”œโ”€โ”€ node@18.20.2
โ”œโ”€โ”€ stripe@15.3.0
โ””โ”€โ”€ tailwindcss@3.4.3

#

these are the libraries i currently have installed

paper arch
#

How experienced are you with this? Have you ever done this?

dry blaze
#

its basically a blank project

#

quite new

paper arch
#

Sorry but that's going to be far from enough to help.

#

do you have a server running? Do you know how to do HTTP requests and understand your server?

dry blaze
#

npm start

#

or node server.js

paper arch
#

I'm sorry I'm going need a lot more details than a handful of words. Sorry I know this can be confusing but I can't really help with just "npm start" when I asked multiple questions

dry blaze
paper arch
#

Yeah I just downloaded that file, went to the folder, did npm start, then opened a browser and loaded http://localhost:4242/checkout.html and it worked immediately

#

Do you have checkout.html properly in that public folder?

#

jeremy_nodejs-beginner

dry blaze
#

ye just did that solved it

#

wasnt written in the documentation

#

mb

paper arch
#

ah gotcha so yeah there are multiple files needed beyond the server.js

#

you need multiple files for the client to show the page (checkout.html), have code to render Checkout (checkout.js) and then we have a "result page" too

dry blaze
#

no its the public/ folder

paper arch
#

you can download the whole project at once if it helps

dry blaze
#

yeh thanks a ton

paper arch
#

sure thing!

#

sorry it's always tricky to debug those things since it's more about your local set up and not really the Stripe-specific code, but glad you figured it out ๐Ÿ™‚