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

Handle IP blocks better on the watch page #5757

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Sep 28, 2024

Handle IP blocks better on the watch page

Pull Request Type

  • Bugfix

Related issue

closes #5534

Description

This pull request fixes the TypeError: Cannot read properties of null (reading 'reason') error message by correcting where we get the reason property from and by adding a proper error message when the users is IP blocked.

This changes in this pull request are based on the response files provided in this comment #5534 (comment), as I haven't found an IP address that is blocked and nobody responded to this comment asking for information on how to find a blocked IP #5534 (comment)

Testing

I have not been able to test this, as I haven't found an IP address that is blocked and nobody responded to this comment asking for information on how to find a blocked IP #5534 (comment)

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 30f95e5

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 28, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) September 28, 2024 11:09
@efb4f5ff-1298-471a-8973-3d47447115dc

As our team cant didnt ran into the IP blocks maybe create test build and provide it to the users of that issue?

@absidue absidue force-pushed the watch-page-ip-block-message branch from db4f430 to caa37d8 Compare October 3, 2024 20:54
Copy link
Member

Choose a reason for hiding this comment

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

Found a blocked IP. LGTM!

@FreeTubeBot FreeTubeBot merged commit c76c552 into FreeTubeApp:development Oct 4, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 4, 2024
@absidue absidue deleted the watch-page-ip-block-message branch October 4, 2024 13:25
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.

[Bug]: Both Local and Individuous API don't work. Pulling Null of Video
5 participants