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
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)
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
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
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
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
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
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
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