Skip to content

Getting error while calling from App engine  #57

@nagaraja-sv

Description

@nagaraja-sv

Hi,

Can you please help to solve this
I am trying to call below function on Google AppEngine development server and getting the error.
But without appengine getting the record details from salesforce.

func init() {
	// Init the force
	forceApi, err := force.Create(
		"v39.0",
		"****************************************",
		"*******",
		"****@*****.com",
		"******",
		"*******",
		"production",
	)
	if err != nil {
		log.Fatal(err)
	}

	// Get somCustomSObject by ID
	someCustomSObject := &SomeCustomSObject{}

	err = forceApi.GetSObject("a0K0I00000DlwBQ", nil, someCustomSObject)
	if err != nil {
		fmt.Println(err)
	}

	fmt.Printf("%#v", someCustomSObject)

I am getting below error

the runtime process for the instance running on port 57472 has unexpectedly quit

2018/08/21 15:16:24 Error sending authentication request: Post https://login.salesforce.com/services/oauth2/token: http.DefaultTransport and http.DefaultClient are not available in App Engine. See https://cloud.google.com/appengine/docs/go/urlfetch/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions