Giter Club home page Giter Club logo

v-request's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

v-request's Issues

求大神帮助

Uncaught (in promise) Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 3e7eda4e-847b-11ea-b397-5254004f3f4d, cloud function service error code -504002, error message connect ECONNREFUSED 127.0.0.1:8080
Error: connect ECONNREFUSED 127.0.0.1:8080

依赖的基础库版本是多少

小程序需要通过基础库版本判断可以给哪些用户使用。版本低的用户是不能使用依赖高版本库的小程序的。希望作者注明一下。

报了个错误,老哥帮忙看一哈

谢谢~(≧▽≦)/~啦啦啦

Uncaught (in promise) Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 1cb63f35-794c-11e9-b01f-525400e8849e, cloud function service error code -504002, error message wx is not defined; at cloud.callFunction api; 

wx.vrequest不能解析json

header: {date: "Fri, 10 Jul 2020 21:29:48 GMT", content-type: "application/json", content-length: "87", connection: "close", server: "NWS_TCloud_static_mid_TCB", …}
statusCode: 200
proto: Object

你好,作者

作者,这个返回字符串乱码是为什么?z怎么解决?

responseType设置无效

我将responseType设置为arrayBuffer后,返回的res.body仍然是字符串(设置的目的是获取图片的arrayBuffer -> 在本地js文件中调用'wx.arrayBufferToBase64()'来显示图片)
仔细研究之后,发现这与我所请求的地址是"HTTP"有关,不知该用什么方法规避呢?

POST请求data参数问题

官方的wx.request
data: {
x: '',
y: ''
}
可以成功传参

wx.vrequest
只有当
data: 'key=value' 才能成功传参

如果要像wx.request POST多个key:value 该怎么办?

报错提示 cloud.init()

你好,使用中有这样的提示,请教如何处理,在每个 wx.vrequest 之前加 cloud.init() ?还是?

remote-helper.js:44 [process] unhandledRejection Error: errCode: -1 | errMsg: Cloud API isn't enabled, please call wx.cloud.init first
请先调用 wx.cloud.init() 完成初始化后再调用其他云 API。init 方法可传入一个对象用于设置默认配置,详见文档。
at new e ([publib]:1:220760)
at Object.exportAPI.(anonymous function) [as callFunction] ([publib]:1:131763)
at weapp:///v-request.js:61:14
at new Promise ()
at Object.wx.vrequest (weapp:///v-request.js:60:10)

小程序报错

你好,小程序报错,如下:
请先调用 wx.cloud.init() 完成初始化后再调用其他云 API。init 方法可传入一个对象用于设置默认配置,详见文档。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.