[google-appengine] Re: Using a context not associated with a request

2017-05-17 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi William, Email your exact project name privately once again, using the drop-down menu of the "reply" button. There is a suspicion of user-error in coding or simple misconfiguration, things like misspelled app or bucket names, or incorrect imports. It is worthwhile double or even triple

[google-appengine] Re: Using a context not associated with a request

2017-05-09 Thread william
Here is the main function: package main import ( "encoding/json" "io/ioutil" "net/http" "fmt" "google.golang.org/appengine" ) func main () { // BigQuery InitBigQuery() defer bigQueryClient.Close() http.HandleFunc("/", HandlerBase)

[google-appengine] Re: Using a context not associated with a request

2017-05-09 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi William, Before attempting to go in any more depth: how do you run your code, in detail (not only the function definition)? The error indicates a function main(). It might prove helpful to see the main function in context, how you call your InitBigQuery() function, exactly. What is the

[google-appengine] Re: Using a context not associated with a request

2017-05-09 Thread william
Hi George, Thanks for your reply. While waiting, I tried directly streaming the data to BigQuery instead of using PubSub so I created a client by following the link you gave me but I'm getting a similar error as when I create a PubSub client: panic: not an App Engine context goroutine 1

[google-appengine] Re: Using a context not associated with a request

2017-05-05 Thread 'George (Cloud Platform Support)' via Google App Engine
The information provided is relevant. Waiting, at the moment, for input from developers, who might request more information soon. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails

[google-appengine] Re: Using a context not associated with a request

2017-05-04 Thread william
Hi George, I'm not at my workplace right now (it's quite late in EU). I got this from this from the Cloud platform's console, does this help ? panic: not an App Engine context goroutine 1 [running]: panic(0x17db1c0, 0xc010526280) go/src/runtime/panic.go:481 +0x3e6

[google-appengine] Re: Using a context not associated with a request

2017-05-04 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi William, More information on the error is needed, to determine where the message gets generated and the reason behind it. More useful data can be gathered by enabling error collection in Go, as described in "How to get stacktraces from errors in Golang with go-errors/errors

[google-appengine] Re: Using a context not associated with a request

2017-05-04 Thread william
Hello George, I have changed my version of Go to 1.6 but I'm still getting the same error for the same line: psClient, err := pubsub.NewClient(ctx, "myproject-645411") Another question related to this one, if I want to create a new BigQuery client, which function should I use to create an

[google-appengine] Re: Using a context not associated with a request

2017-05-03 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello William, What version of Go have you installed? If you want to program for the standard environment you need Go version 1.6. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails