Problems with flask and bad request

前端 未结 3 673
面向向阳花
面向向阳花 2021-02-18 17:20

I was programming myself a pretty nice api to get some json data from my gameserver to my webspace using json,

but everytime i am sending a request using angular i am ge

相关标签:
3条回答
  • 2021-02-18 17:30

    Recently I also faced this, the problem came from the SSL config on my app. In my .env I set the SSL_DISABLE to False, then I change it to True.

    change SSL_DISABLE=False to SSL_DISABLE=True

    So, the point here is are: check your URL, maybe be it something like: https://127.0.0.1:5000, just change it to http://127.0.0.1:5000.

    Hope it helps to someone who also facing this issue in the future.

    0 讨论(0)
  • 2021-02-18 17:39

    I had the same error as yours.

    My flask server was installed inside respberry-pi and I was trying to access it using https://ip:5000.

    The problem was I was using https instead of http.

    When I changed it to http://ip:5000, it worked.

    0 讨论(0)
  • 2021-02-18 17:42

    I also faced same problem

    use only http not https :-

    http://ip:portnumber
    
    0 讨论(0)
提交回复
热议问题