Skip to content

small test to reproduce a 403 error from a non-existant ws route

License

Notifications You must be signed in to change notification settings

n1ckdm/test-fastapi-websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websocket Test with FastAPI

Running

Build the docker image and run it:

docker build -t wstest .
docker run -d --name wstest -p 80:80 wstest

Navigate to http://localhost/ and then view the container logs with:

docker logs -f wstest

You should find that when clicking on the ws://localhost/ws button everything works fine, but clicking on the ws://localhost/error button gives a 403 (forbidden) error from uvicorn becuase the route doesn't exist (although this is a somewhat misleading error).

About

small test to reproduce a 403 error from a non-existant ws route

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages