Code Monkey home page Code Monkey logo

fc-go-sdk's Issues

Create service got an error

I invoked CreateService method to create an fc service and got the following error:

&url.Error{Op:"Post", URL:"http://cn-beijing.fc.aliyuncs.com/2016-08-15/services", Err:(*net.OpError)(0xc42038c8c0)}

readme 过分简单!

你好,开发者,麻烦加上
1、go get github.com/aliyun/fc-go-sdk
2、import "github.com/aliyun/fc-go-sdk"
买了阿里的产品,希望有一个完善的SDK,包括文档。

Process exited unexpectedly before completing request

请问在触发函数时产生 Process exited unexpectedly before completing request 的原因
InvokeFunction

	invokeInput := fc.NewInvokeFunctionInput("xxxx", "xxxx")
	invokeOutput, err := client.InvokeFunction(invokeInput)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Println(string(invokeOutput.Payload))
	}

return

{"errorMessage":"Process exited unexpectedly before completing request (duration: 9ms, maxMemoryUsage: 49.82MB)"}

这么严重的问题为啥没人发现 。。。。

我使用sdk里的GetAuthStr方法调用http触发器。。。resource 参数,总是报错403 。。。后来看了python版的sdk发现。。。。。。。。。。结尾后要跟一个换行符( \n ) 才行。。。

(黑人问号)

go mod 无法引用tag v1.1.0 和tag v1.0.0

因为我们使用的go版本是1.15 但是master分支已经升级到go 1.16了,其中部分代码使用了go1.16才有的io包,导致我们引用master分支的时候编译报错。但是在引用 tag v1.1.0 和tag v1.0.0的时候都报错:go: github.com/aliyun/[email protected]: reading github.com/aliyun/fc-go-sdk/go.mod at revision v1.1.0: unknown revision v1.1.0
能否将client.go: 1163行的io.ReadAll(resp.Body)改成ioutil.ReadAll(resp.Body), 这个文件里同时在使用io.ReadAll(resp.Body)和ioutil.ReadAll(resp.Body),而io.ReadAll(resp.Body)只在go1.16才支持,对老项目很不友好。

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.