#Albert Wenge

1 messages · Page 1 of 1 (latest)

high stumpBOT
iron pike
#

You likely want to find a hosting provider and follow their guide to deploy your project

high furnace
#

Hi river

#

actually I have uploaded my webhook stuffs to a web server, but the endpoint URL doesn't wokr

#

not sure what should be the right endpoint url

iron pike
#

I'd recommend reaching out to the hosting provider and check with them what the URL format should be like as we don't know how your web server works

high furnace
#

but they may not know about webhook setup

#

can you please help me on the setup?

iron pike
#

The webhook endpoint is defined by your project

#

When you mentioned the endpoint URL doesn't work, what is the issue you're facing?

high furnace
#

the webhook stuffs tested fine in my local with localhost:4242/webhook

#

but I am not sure how to set it up in a host server

#

but it failed in connecting

iron pike
#

Can you share an example event ID (evt_xxx) with the error message?

high furnace
#

I got 404 ERR for the response

#

i did visit above link earlier

iron pike
#

You can't test the webhook URL with the browser

high furnace
iron pike
#

Ah I see!

#

With 404, it means that the endpoint is not found

high furnace
#

so what should be the right endpoint url?

slow onyx
#

Cant reach that site

iron pike
#

I don't know how your web server/hosting provider works, so I don't know what is the right endpoint URL

slow onyx
#

Better check your site first

#

@high furnace Your site is not live yet, even using browser I cant access it

high furnace
#

the main site is working

slow onyx
#

But the one you used to get data from stripe is not working

#

You need to fix it first

#

Seem you are not a developer?

#

Better hire someone do it for you. It not a big deal with a developer

high furnace
#

I am but not too much from this apect

#

I already tested the webhook locally with no issue

#

now just need the endpoint url from public server

slow onyx
#

I cant even access your webhook via browser

high furnace
#

so it needs to be accessible via browser?

slow onyx
#

It should be accessible with normal browser, then Im surely Stripe can reach it

#

Yes

iron pike
#

Since local is working fine, the webhook integration/setup is properly done. Deployment is outside of Stripe's scope as the project can be hosted differently. I'd recommend checking with your web server what is the correct step to host the project and get its URL. From 404 error message, this means that the endpoint path isn't registered at what you intent it to be

high furnace
#

I was told - You can't test the webhook URL with the browser..

iron pike
#

Endpoint path can only be tested with POST method when you set up the endpoint path as POST

#

Opening the URL in browser is a GET request

slow onyx
#

I see the error message, but its like a server response, not a method not allowed message

#

I do thing there is some problem with server config

iron pike
#

Yup, 404 means that this page with GET isn't found

high furnace
#

so can you guys please help on how to set it up in a hosting server?

#

I just directly uploaded the program to the server

high stumpBOT
high furnace
#

this is the webhook stuffs I used, it work & tested well locally, can someone pls help me deploy it to a sever and get the endpoint url?

gloomy rain
#

Taking over here, and sorry we can't do it completely for you. You would want to investigate first which server/hosting provider you want to use, then follow their Doc to deploy to their server

high furnace
#

but they may not know how to setup the webhook stuffs

gloomy rain
#

They should know how to upload file to a server on their hosting

#

You would want to have at least 1 simple POST endpoint working first, then start to plug in your webhook logic code

high furnace
#

I know how to upload the files, but not the configuration, can you pls help?

gloomy rain
#

Sorry but it also depends on what exactly the hosting provider you are going to use. Each provider would have different way of setting environment variable, for example

high furnace
#

it is just a web server for hosting website

#

they should be the same

gloomy rain
#

No they are different, really. Have you worked with some of the hosting providers before? Just choose one you are familiar with

high furnace
#

I currently use winhost