当前位置:网站首页>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版本
边栏推荐
- SDN system method | 10 The future of SDN
- Mathematical modeling -- integer programming
- On Web 3.0
- Internship: the annotation under swagger involves the provision of interfaces
- 剑指 Offer 50. 第一个只出现一次的字符
- Redis 的PSYNC命令
- [Jianzhi offer II 091. painting the house]
- PSYNC command of redis
- Old mobile phones turn waste into treasure and serve as servers
- 芝士糖豆打造AR潮玩新体验
猜你喜欢

单例模式应用

数学建模——非线性规划

SMART PLC如何构造ALT指令

【Matlab】数值微积分与方程求解

巴比特 | 元宇宙每日荐读:三位手握“价值千万”藏品的玩家,揭秘数字藏品市场“三大套路”...

内卷?泡沫?变革?十个问题直击“元宇宙”核心困惑丨《问Ta-王雷元宇宙时间》精华实录...

Distinguishing seven kinds of facial expressions by deep separable convolution neural network

【编译原理】概述

PLSQL storage function SQL programming
![[Jianzhi offer II 091. painting the house]](/img/63/dc54c411b1a2f2b1d69b62edafde38.png)
[Jianzhi offer II 091. painting the house]
随机推荐
宝藏又小众的国画3d材质贴图素材网站分享
国泰君安证券靠谱吗?是否合法?开股票账户安全吗?
A development of student management system based on PHP
杰理之系统时钟设置出现复位或无效问题【篇】
Will the 2022 cloud world be better
Good fat man takes you to learn Flink series -flink source code analysis episode I standalone startup script analysis
数学建模——整数规划
The role of the project manager in the project
Protocol and hierarchy
Why are there few embedded system designers in the soft test?
mood
软考中的嵌入式系统设计师为什么考的人少?
Super Full Metal PBR Multi - channel Mapping Materials website collation
Create a new ar fashion experience with cheese and sugar beans
剑指 Offer 50. 第一个只出现一次的字符
这些老系统代码,是猪写的么?
Batch --07--- breakpoint lifting
[black apple] Lenovo Savior y70002019pg0
杰理之定时器使用注意事项【篇】
Snakeyaml profile parser