官方提供的http文档,查看云数据库内容报44002错误?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:21 590 0 全屏看文

AI助手支持GPT4.0

官方提供的http文档,查看云数据库内容报44002错误?


服务端为nodejs,代码片段为原生写的发送请求获取云数据库内容,但是一直是这样的,小白菜一枚也不知道哪出现的问题,求前端大神解决方案。

修改后的代码

The server is nodejs, and the code fragment is originally written to send a request to obtain the content of the cloud database. However, this has always been the case. I don't know where the problem is, and ask the front-end God solution. Modified code

回答:

Coldfront:

stop eating:

是json, 为什么C还要拼接到URL后面?

Coldfront:C是参数呀,不然放哪
Coldfront:求方案
stop eating:C是参数?不会传json?
Coldfront:这样跟在path后面不行么?
Coldfront:哪传递的参数怎么传
Coldfront:求大神指点
金柯:放进body
Coldfront:我用的是nodejs,内置的模块https下的request方法,咋放进body,可以的话,给局部代码
stop eating:
Coldfront:嗯嗯,post请求是这样写的 谢谢,但是修改后,报47001,POST body 格式错误
Coldfront:你看
stop eating:
Coldfront:我的代码跟你一样,我仔细在看看,哪有问题,
Coldfront:你运行出来了,应该没错,我检查一下
stop eating:你确定一样?
Coldfront:嗯嗯,之后,我改过来了,现在还不行,我把完整代码发出来,麻烦大神帮个忙看一下
Coldfront:我把修改后的代码改过了,麻烦大神看一下谢谢你,今天我跟这个问题干上了
Coldfront:弄好了,https,
Coldfront:感谢,我的问题终于解决了,你太帅了
Coldfront:对Ajax不是很熟悉,现在了解了一点点

-EOF-

AI助手支持GPT4.0