#CharlieMalmqvist

1 messages · Page 1 of 1 (latest)

supple wolfBOT
verbal heron
#

Have you tried removing the percent encoding at the end of that URL?

rough quartz
#

I dont know how that got there

#

its just /webhook sorry

verbal heron
#

Also, do you own the domain mydomain.net, because that seems like a placeholder that you're supposed to replace with your actual domain name

rough quartz
#

no no no its an example domain

verbal heron
#

Do you have an Event ID I can look at? Or a Webhook Endpoint ID I can look at?

rough quartz
#

Is it this perhaps: we_1N19j8HEwxUJaVLaUrvBjAR9

#

I noticed now on the later attempts I get this error on the website for the post request:
Connection to remote host denied (please contact support at https://support.stripe.com/contact/)

verbal heron
#

Hmmm, it's interesting that you're getting multiple different types of errors to this endpoint. Have you tried removing the port number?

rough quartz
#

Yeah Ive done it all the time without port number just added it in now to try with it

#

I just declare it normally in node.js and it works completely fine when sending a post request from for example a python script over the internet:

Node.js:

app.post('/webhook', async (req, res) => { ...

Local python script:

requests.post("https://relectro.net:8080/webhook", headers=headers, json={ 'nothing': 5 }, timeout=10)

verbal heron
#

Wait, you're using Node AND Python on your backend?

rough quartz
#

No

#

Python is a test script, sorry I meant locally on my computer, my server is on a vps with the node.js backend

supple wolfBOT
verbal heron
#

Hmmm, I tried visiting https://relectro.net/ and it says the site cannot be reached. This doesn't necessarily mean webhooks shouldn't work, but usually you should be able to reach the website that the webhooks are sent to

rough quartz
#

Strange it works for me , trying on different networks, devices, and clearing cache

#

No actually itd´s down now again, I'll restard the vps

#

this happened also about an hour ago but I had the stripe problem before that so I don't think it's too related

verbal heron
#

Still, it's a lot easier to debug when the server receiving the requests is working

rough quartz
#

Yeah

#

Is it working now+

#

It was working fine like 15 minutes ago :/

delicate spruce
#

I'm getting a site can't be reached error right now still

rough quartz
#

yeh sorry im contacting my vps provider

delicate spruce
#

No worries

#

Likely this is all due to a networking issue, but once you get things up and running again we can confirm

rough quartz
#

sending requests from python works fine tho this doesnt make sense to me

#

I'm using the domain name when sending requests, so how can my browser not find the ip address of relectro.net server

delicate spruce
#

Could be a server misconfiguration not sure

#

Your provider should be able to provide more context

supple wolfBOT