Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error output supplemented by error from Twitch #378

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from

Conversation

DotNetExe
Copy link

No description provided.

Syzuna and others added 12 commits February 28, 2022 23:08
[Release] Version 3.5.0
[Release] Version 3.5.2
[Release] Version 3.6.0
Changelog:

- Fixes an ArgumentNullException when not providing a playlist id for the GetPlaylists API call
- TwitchLib now builds on .NET 6 SDK
- Fix various issues with GetStreamMarkers API
- Fix Predictors models (TwitchDev Docs are wrong)
- Added GetCharityCampaign support
- Revisited the code, cleaned up unused imports and rewritten some input validation
Changelog:
-  Added GetChatters Helix API support
-  Marked Undocumented GetChatters API as obsolete
-  Added various new and missing scopes to AuthScope Enum
-  Added optional bool to determine whether to invoke FollowerService Events on startup (default: false)
-  Removed broken undocumented Endpoints
-  Fixed an issue with DeleteEventSubSubscriptionAsync to return false on success
-  Added XML docs to every API function call
-  Added EventSub Websocket Support to CreateEventSubscription
-  Removed Id param from GethypeTrainEvents (removed by Twitch)
-  Allow to query for multiple EmoteSets by Id
-  Allow to query for multiple redemptions by Id
-  Added missing query params to both Analytics API calls
-  Removed communityIds and type param from GetStreams (removed by Twitch)
…tch-2

Revert "Add missing whispers class"
Changelog:

-  Updated dependencies
-  Added missing Auth subclass to ITwitchInterface
-  Added HttpResponse to Http related exceptions for better debugging
-  Added IgdbId to Games and added support for IgdbId lookup for Games
-  Added type parameter to GetStreams
-  Added tags to all related Stream models
-  Added UserId and UserName to GetChatters
-  Added GetCharityDonation support, Added Shield Mode support
-  Added Send Shoutout support
-  Added new Follower Endpoints support
-  Switched Follower Service to new Follwer endpoint (Breaking Change)
-  Reason for BanUser now defaults to string.Empty
-  Fixed wrong Whisper Endpoint
-  Fixed wrong property name in CreateCustomRewards Request
-  Fixed issue with force_verify in generated Auth strings by GetAuthorizationCodeUrl
-  Fixed UpdateUserCall using the wrong HTTP method
Copy link
Member

@swiftyspiffy swiftyspiffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@Syzuna Syzuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!
3 Small things from me:

  1. Please target the dev branch with your PR
  2. Could you change the message that is passed to the exception to be just sth like $"{deserializedError.Error} - {deserializedError.Message}"? I dont think we need the other outdated parts that we had in there for ages.
  3. Just make the method async instead of using .Result. I think you should be able to do that as the method in that HandleWebException is called should be async already

@DotNetExe
Copy link
Author

@Syzuna thanks for the review! - i will fix that later on ;)

- made HandleWebException method async
- removed outdated message-content from exceptionmessage
@DotNetExe DotNetExe changed the base branch from master to dev November 6, 2023 18:42
Co-authored-by: neon-sunset <neon-sunset@outlook.com>
@neon-sunset
Copy link

neon-sunset commented Feb 4, 2024

The last change to make this work is to await the HandleWebException at lines 47 and 98 (there should be a suggestion in IDE) because otherwise the exception will not be observed/caught/logged anywhere which is not the intended behavior here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants