textual-dev icon indicating copy to clipboard operation
textual-dev copied to clipboard

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

Open bapainter opened this issue 1 year ago • 3 comments

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)

bapainter avatar Aug 31 '24 20:08 bapainter

What version of aiohttp do you have installed?

willmcgugan avatar Sep 01 '24 14:09 willmcgugan

Pip says....

aiohttp 3.10.5 aiohttp-jinja2 1.6

bapainter avatar Sep 01 '24 15:09 bapainter

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

EstebanMunoz avatar Sep 10 '24 00:09 EstebanMunoz

Wrong repo, bit this was fixed in textual-serve

willmcgugan avatar Dec 11 '24 19:12 willmcgugan