Code Monkey home page Code Monkey logo

fastapi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fastapi's Issues

Running uvicorn with https results in application error

App shows that it is running fine in deploy logs below when using https but fails when using browser and shows Application Error.

Creating virtualenv ro-server-9TtSrW0h-py3.10 in /root/.cache/pypoetry/virtualenvs
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on https://0.0.0.0:5733/ (Press CTRL+C to quit)

Calling any route run from the base template from https secure site results in mixed content error

I've spent the last while trying to figure out how to properly deploy fastapi with https on railway; even though railway handles the reverse proxy for us, for some reason when my frontend fetches to the proper railway (https://abcdefg.production.up.railway.app) URL, it returns a response with the Location set to http automatically, while giving this error:

image

I did finally manage to get it to work with uvicorn src.api:app --host 0.0.0.0 --port $PORT --proxy-headers --forwarded-allow-ips '*' (where '*' would be replaced with the ips).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.