Question

Twitch extension callbacks into droplet

Have a Discord bot that makes use of the Twitch API, this works locally on my machine, but doesn’t work when running from my droplet, this is a simple node image, nothing else installed. From the looks of it, Twitch is not able to the callback, I’m using the ip4 address for the base of the callback which is not working, if i change this to my local machine and run it on the local machine it calls back, so id guess its safe to say that’s the issue. Can i use the ip4 or do i need to setup something else in order for external apis to callback?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend!

You can definitely use the IPv4 address on the droplet for this. For our perspective this is basically equivalent to the ability to run a website, etc. It is often the case that applications do not migrate from staging to production, most commonly due to unexpected differences in the environment. Some people will compensate for this by using Docker or things of that nature, while for others it makes more sense to just troubleshoot the issue.

I would troubleshoot this step by step, with the steps being relative. What is the method of the callback? Is it hitting a URL over HTTP? If so, can you hit that same end point? If not, why? Is the application listening on the port? Things like that, just as an example, might be valid questions along the way.

Jarland