Self-hosted-server

Hello CryptoKid

I run self hosted server (parse-server) on my local and on other side i run command ngrok http 1337 and get the new route url and use new-route-url/streams for getting events and save them on mongo and everything is working fine

Now when i deployed the self-hosted-server on aws ubuntu and use the ip/streams in the moralis dashboard as streams webook url it throwning an error Could not POST to http://13.250.36.138:1337/streams - Request failed with status code 401. Please check your webhook URL.

Can you please check ?
Thanks

Is that url working as expected? Can you make a request to it with postman?

Yes Cryptokid i requested it with postman

Try with a valid request

Where is the error ?

please let me know the params

I see a different url here than in the error

in the moralis dashboard when changing from demo to production in the streams webhook block

You can se them in a demo stream in admin interface

What url you used for the webhook url?

i am using this one http://13.250.36.138:1337/streams

You can test with webhook.site to see the request and test with it

while in demo showing events

Try with a complete request with postman. Did you set the api key?

yes i set the api key in the parse server env file

how can i debug the parse server is working or not

Try to add logging server side to see the request and what gappens

You can find examples on other forum posts

This may help