Giter Club home page Giter Club logo

twitchlib.eventsub.webhooks's Issues

Exception with HypeTrainBegin event

It seems the Twitchlib.EventSub module doesn't work with the channel.hype_train.begin event

It crashes on the LastContribution object which expects an array of HypeTrainContribution
But it's only a single element

image

[Error] WebApp.Services.EventSubService: Reason: Application_Error - Message: The JSON value could not be converted to TwitchLib.EventSub.Webhooks.Core.Models.HypeTrain.HypeTrainContribution[]. Path: $.event.last_contribution | LineNumber: 0 | BytePositionInLine: 738.

Enhancement Request - Event Deduplication + Deduplication Cache

Problem: Twitch guarantees at least one webhook. If OK responses are sent too late, or in certain situations where Twitch believes you did not get the webhook event, it will resend the webhook. This could lead to duplicate events being processed.

Solution: Create logic for de-duplication of matching msg_id values by reviewing retries in the payload POST from Twitch and/or create a deduplication cache which keeps track of msg_id values.

Additional Scope Enhancements: Custom TTL value for deduplication cache.

Case-sensitive dictionary access does not allow testing with twitch-cli

I started to work on an application that will use Twitch EventSub, and Twitch provides a handy tool called the twitch-cli to simulate EventSub triggers. However, when twitch-cli creates the necessary headers for EventSub event, it creates them in all lowercase:

image

This causes failures even within the example application in this repository, notably always triggering a Missing_Header error.

Following the Twitch EventSub docs, they recommend always converting any check to lower case prior to checking the headers.

UseTwitchLibEventSubWebhooks support for .NET 7+ IHostApplicationBuilder

The UseTwitchLibEventSubWebhooks extension method is currently defined on IApplicationBuilder, which is being phased out in favor of IHostApplicationBuilder.

HostApplicationBuilder is returned by Host.CreateApplicationBuilder() and implements IHostApplicationBuilder.
WebApplicationBuilder is returned by WebApplication.CreateBuilder() and also implements IHostApplicationBuilder.

Can we get support for this new interface?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.