Question

Receiving api calls into droplet

I have a docker container/image running, on my local machine, this works fine, when starting it up on my droplet I don’t receive the callback I normally receive. It’s a Twitch callback, it goes in two parts, I make a call, which is logging out to say I made the call to them successfully, but I don’t receive the callback from Twitch into my container.

Twitch call me back at an address like this: http://142.93.47.190/api/twitch/callback The docker-compose file has a port mapping of 4001:4001 (the app starts up on 4001)

but that doesn’t seem to come through, I tried temporarily disabling my firewall as well, no luck.

Any ideas for how to receive calls into the droplet, are there any specific setup needed before i can do this?


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Accepted Answer

Hi,

It looks like you need to start up the container on port 80:4001.

Either that or change the callback address to http://142.93.47.190:4001/api/twitch/callback.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.