Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Alex Grönholm
    @agronholm
    LibreOffice Calc would probably fare better
    cuellarirobert
    @cuellarirobert
    i apologize! the reason why i was doing it with excel is because i am considering exposing this api to customers
    Alex Grönholm
    @agronholm
    then you probably need to add a byte-order marker to the CSV
    what exactly it needs, I don't know
    but now that you know what the problem is, you can figure it out
    cuellarirobert
    @cuellarirobert
    okay, i'll do some googling and see if it's possible with one of the libraries or if i need to do something manual
    thank you so much :)
    Alex Grönholm
    @agronholm
    you could just use a library to output in Excel format directly
    and not go through CSV
    cuellarirobert
    @cuellarirobert
    hm good point, i can try that in pandas
    i did find a workaround

    ** MSFT
    Microsoft Agent | Moderator
    Replied on February 22, 2022

    As per your description, please don’t worry we can work together to narrow down and resolve the situation.

    1. Save the exported file as a csv
      1) Open Excel
      2) Import the data using Data-->Import External Data --> Import Data
      3) Select the file type of "csv" and browse to your file
      4) In the import wizard change the File_Origin to "UTF8" (or choose correct language character identifier)
      5) Change the Delimiter to comma
      6) Select where to import to and Finish
    it appears to be a mac excel issue...
    sanjuDevops123
    @sanjuDevops123
    Hi I need Help to enable HTTPS for uvicorn.
    As i am using Fastapi as Framework one of feature. but when i am running uvicorn app:app --host 0.0.0.0 --port 8000 It's getting default Prtocal http so i want to enable https for this Fast API.
    Can any one help me on this?
    And FastAPI setup done on Ubuntu lates
    Alex Grönholm
    @agronholm
    @sanjuDevops123 I take it you've looked at uvicorn's documentation then?
    on how to enable TLS
    this has nothing to do with the application framework
    Marcelo Trylesinski
    @Kludex
    @tomchristie Starlette is blocked by mkautodoc. I've applied the bump you asked to Florimond on tomchristie/mkautodoc#34 :pray:
    Good morning :raised_hands: :sunglasses:
    Actually, Starlette is not blocked anymore. A mkdocs release pinning Markdown saved us :pray:
    Tom Christie
    @tomchristie

    Actually, Starlette is not blocked anymore. A mkdocs release pinning Markdown saved us

    That's the kind of news I like

    sanjuDevops123
    @sanjuDevops123
    @agronholm Means Uvicorn won't help in this way? And for main web application(React) i was using Nginx.
    Alex Grönholm
    @agronholm
    is your uvicorn directly exposed to the Internet?
    could you not use nginx as a front-end server for your back-end too? that is how I do things
    sanjuDevops123
    @sanjuDevops123
    Yes Directly exposed to Internet. And Yes For front end Nginx. Is it can be use same SSL cert for FASTAPI also with uvicorn?
    i mean For this uvicorn call!
    Alex Grönholm
    @agronholm
    is the certificate compatible with both the front end and back end?
    it's easier and safer to have nginx deal with the TLS stuff
    nginx has all sorts of plugins to help fend off attacks
    Alexandre Santos
    @alexsantos
    Pass all computation work related to TLS stuff to a load balancer like HAProxy or Nginx
    sanjuDevops123
    @sanjuDevops123
    I am not sure @agronholm How can i check that?
    So i can use single SSL for 2 different API
    Alex Grönholm
    @agronholm
    @sanjuDevops123 well, what host names does your certificate cover? do you have different host names for the front end and back end?
    are you using let's encrypt (or another ACME provider)
    sanjuDevops123
    @sanjuDevops123
    Only there is one Host name that to frontend. and using let's encrypt only!
    Alex Grönholm
    @agronholm
    @sanjuDevops123 but what about backend? does it use a different host name?
    sanjuDevops123
    @sanjuDevops123
    both are in single host.
    I mean back end also @agronholm :)
    since i only configured single instance for both.
    Alex Grönholm
    @agronholm
    ok, so are you using different ports to route traffic to the back-end?
    sanjuDevops123
    @sanjuDevops123
    Yes Alex, frontend 80 which is react application and backend python as 8000 port
    That to be FASTAPI, and configured with uvicorn
    but backend 8000 is not working with https. since i configured 80 as frontend with nginx
    Alex Grönholm
    @agronholm
    well, you can just serve port 8000 with nginx too then, and reuse the same certificate there
    sanjuDevops123
    @sanjuDevops123
    Okay agreed, i was done this but in different instance which is i created from Prod server AMI image.
    but no use, Let me try in Prod server!
    Alexandre Santos
    @alexsantos
    @sanjuDevops123 on nginx configure one frontend as https (port 443) with a certificate and two backends, one for the react app and one for the fastapi app. https://my-app:443 goes to the react running on port 80 and https://my-app:443/api goes to the fastapi running on port 8000
    Max Fischer
    @maxfischer2781
    Hi folks,
    I'd like to work on / add a PR for encode/uvicorn#1579. It's a practical problem for our application, so I will be working on this anyway and already have a rough idea how to solve the issue.
    Can I go ahead and start working on a PR or is more discussion needed on the issue?