#simospa_webhooks

1 messages ¡ Page 1 of 1 (latest)

obtuse cypressBOT
#

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

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

lament wraith
lost junco
#

404 indicates that endpoint doesn't exist on that server

#

Have you tried hitting it with postman?

#

Likely you'll get the same

lament wraith
#

I'll try now, but what does it mean ? why locally it was working and the endpoint is triggered? the application are exactly the same

lost junco
#

Something to do with how you deployed or configured your app

#

are you sure it's /stripe/event/listener and not /event/listener?

lament wraith
lost junco
#

Something isn't configured correctly

#

Try hitting that endpoint via postman

lament wraith
lost junco
#

Yup

#

Not familiar with your deployment environment, so I won't be able to help much

#

You'll need to debug this

#

But something is wrong with your deployment and or configuration

lament wraith
#

even if everything locally is working correctly with the same application?

#

the app is written in Python with flask, the server is on aws and i use gunicorn

lost junco
#

I mean yeah

#

You're hitting your deployed endpoint right there

#

And it's returning a 404

#

Something is wrong with the way you've deployed or configured the app

lament wraith
#

but if all the other endpoints deployed in the same way are working, is a problem of the single endpoint or something else?

lost junco
#

but if all the other endpoints deployed in the same way are working
Are they? If so, then yeah it's some problem just with that endpoint

lament wraith
#

yeah all the app is working correctly beside for that endpoint

lost junco
#

Yeah you'll need to debug why then. A 404 indicates that route is not found on your server

#

Something has to be different from your local setup, so you'll need to track down what that is

#

In the above code snippet you have @bp.route("/event/listener", methods=["POST"])

#

So where does /stripe/ in the path come from?

lament wraith
#

there is blueprint name stripe at the beginning of the page, all the other ep in the same route page are working correctly with stripe at the beginning

#

is just that ep that is not triggered

lost junco
#

Yeah I don't have access to your dev environment, so no idea. You'll need to spend some time debugging this

lament wraith
#

ooooh that's was the error

#

great man, you made me reflect

#

thank you