填坑,这个bug已经改好10来天了,今天才想起来要写篇博客记录分享一下
因为腾讯云域名审核的原因,10天前才第一次试跑小程序,进行前后端交互。
第一次跑发现微信开发者平台还没有注册,直接飚红
好吧,新手上路总是会翻车的
顺便说一下,服务器域名注册写到端口就好了
可以配置端口,如 https://myserver.com:8080,但是配置后只能向 https://myserver.com:8080 发起请求。
如果向 https://myserver.com、https://myserver.com:9091 等 URL 请求则会失败。
可以不配置端口。如 https://myserver.com,那么请求的 URL 中也不能包含端口
443 端口也不可以。如果向 https://myserver.com:443 请求则会失败。
注册完后,再跑一遍
没有报错,成了?
后端那边没有反应,突然间
2020-01-04 12:05:52.607 INFO 5008 --- [nio-8080-exec-1] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
at org.apache