当前位置:网站首页>WARNING: Unsupported upgrade request.
WARNING: Unsupported upgrade request.
2022-06-25 17:08:00 【jaffe—fly】
用fastapi 写了一个接口,然后java发送post请求,fastapi的接口一直报这个错误,而且java端也也没有收到返回信息
google 了好久,点赞量最高的就是需要重新安装uvicorn
但是这个在我的项目中并没有解决问题
最后发现是java 使用http2请求的,而fastapi用的uvicorn启动,Uvicorn currently only supports HTTP/1.1 and WebSockets
此时此刻,有两种方法解决
方法一:fastapi 的接口升级为http2
方法二:java指定http版本
边栏推荐
- On Web 3.0
- "Podcast with relish" 386 Yuan Tang Hua Yuan Shi: who is not a "Mr. White character"?
- FreeRTOS内核时钟不对的问题解决
- 数据搬迁最佳实践之使用CDM搬迁线下MySQL到DWS
- Snakeyaml profile parser
- How do components communicate
- Old mobile phones turn waste into treasure and serve as servers
- Tensorflow old version
- Mobx学习之路----强大的“状态管理工具”
- Redis Series - Overview day1 - 1
猜你喜欢

The role of the project manager in the project

Super Full Metal PBR Multi - channel Mapping Materials website collation

XXIX - orbslam2 real-time 3D reconstruction using realsensed435

Sword finger offer 50 First character that appears only once

Kotlin

Are these old system codes written by pigs?

杰理之增加加密文件播放功能【篇】

UART波特率对时钟精度的要求有多高?

宝藏又小众的国画3d材质贴图素材网站分享

How did I get a salary increase of 13k+ after one year of employment?
随机推荐
Uncover ges super large scale graph computing engine hyg: Graph Segmentation
College Students' hot summer exchange, Rog star product phantom 16 flipped version / phantom 13 / phantom x appointment
Knowing these interview skills will help you avoid detours in your test job search
【UVM实战 ===> Episode_2 】~ VIP、VIP的开发、VIP的发布
What are the steps for launching the mobile ERP system? It's important to keep it tight
组件通讯的方式有哪些
How to talk about salary correctly in software testing interview
The second round of Yunnan Cyberspace Security competition in May 2021
A complete collection of APP testing tools. It's enough to collect this one
Mobx学习之路----强大的“状态管理工具”
代码注释的艺术,优秀代码真的不需要注释吗?
汇编语言(6)使用JCC指令构造分支与循环
SDN system method | 10 The future of SDN
Batch --07--- breakpoint lifting
Distinguishing seven kinds of facial expressions by deep separable convolution neural network
Next.js 热更新 Markdown 文件变更
【黑苹果】联想拯救者Y70002019PG0
Why are there few embedded system designers in the soft test?
软考中的嵌入式系统设计师为什么考的人少?
"Podcast with relish" 386 Yuan Tang Hua Yuan Shi: who is not a "Mr. White character"?