Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appengine Standard Environment: "not an Appengine context" #487

Closed
buchanae opened this issue Nov 20, 2017 · 1 comment
Closed

Appengine Standard Environment: "not an Appengine context" #487

buchanae opened this issue Nov 20, 2017 · 1 comment

Comments

@buchanae
Copy link

I have an existing API built with grpc-gateway that I'd like to serve in the Appengine Standard Environment. For this app, the benefits of the standard env. outweigh the flexible env. significantly.

Using the Appengine dev server, I get errors like panic: not an App Engine context. As far as I can tell, there's no good way to allow application code to create this context and get it into the grpc handlers. I've tried hacking around in the generated grpc-gateway code, injecting appengine.WithContext manually, but I can't seem to find the right place where both the request and context are available. It also seems like the Appengine context needs to be created on the grpc-server-side.

I wonder if #46 is the right solution. Seems like that issue was closed because the amount of work needed seemed overwhelming, but not because it was a bad idea.

@achew22
Copy link
Collaborator

achew22 commented Dec 9, 2017

With the submission of #454 I think this might be possible since you can control the handler. Note that you will NOT have interceptor support. Beyond that I think all the pieces are there. Please report back with your findings if you have any. Closing since this should be possible.

@achew22 achew22 closed this as completed Dec 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants