I was able to find a work-around to be able to publish to a PubSub topic in 
the Java 8 standard environment until a permanent fix is released: 
https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2275


It's necessary to first obtain credentials from within an App Engine 
request thread. Then, pass those credentials to a new Publisher that is 
created inside a non-request thread, such as one created by a Java 
ExecutorService. This combination works but is not very efficient.

On Wednesday, July 26, 2017 at 7:25:12 PM UTC-4, Kenworth (Google Cloud 
Platform) wrote:
>
> @James  I can see that you are already getting responses from my 
> colleague(s) on GitHub 
> <https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2275>, 
> you can continue troubleshooting on your GitHub thread 
> <https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2275> or 
> any one of the relevant links you mentioned (link1 
> <https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1807>, 
> link2 
> <https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1918>, 
> link3 
> <https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2144>). 
> If no resolution is viable, please feel free to update your Public Issue 
> Tracker case <https://issuetracker.google.com/64064706>providing 
> reproducible steps and/or providing a sandbox project.
>

-- 
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 from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8d4effab-b8f5-4038-9633-999304d7dc86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to