Invalid transport

localhost is not supported, as localhost = 127.0.0.1 aka the same computer.
127.0.0.1 when Twitch makes the call to that URL is Twitch itself

You cannot specify Twitch as the destination for webhooks to be sent to.

For the webhook transport the callback has to be a “real” world accessable URL. Of which localhost is not