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

Textual Serve (1.1.0) gets 403 status codes trying to access resources with Linux #37

Open
bapainter opened this issue Aug 31, 2024 · 3 comments

Comments

@bapainter
Copy link

Textual serve shows 403 (forbidden) http status codes once it has launched. If I try to access the app via the browser, I only see the Textual logo. The logs displayed on the terminal show that certain resources cannot be accessed.

image

The problem seems to be the double forward slashes in the resource address (see image). If I enter the resource address in the browser, I get the forbidden message, however, if I remove a slash, it accesses the resource correctly. Based on other users comments on the Textual Discord server, this issue also happens with Ubuntu and may just be related to Linux.

Versions:

  • Textual: 0.79.0
  • Textual-serve: 1.1.0
  • Python: 3.12.5
  • Linux: EndeavourOS (kernel 6.10.7)
@willmcgugan
Copy link
Contributor

What version of aiohttp do you have installed?

@bapainter
Copy link
Author

Pip says....

aiohttp 3.10.5
aiohttp-jinja2 1.6

@EstebanMunoz
Copy link

I'm having the same problem in Windows.

  • Textual: 0.79.1
  • Textual-serve: 1.1.0
  • aiohttp 3.10.5
  • aiohttp-jinja2 1.6
  • Python: 3.12.4
  • Windows 11

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

No branches or pull requests

3 participants