-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feature request to pull host from PUBSUB_EMULATOR_HOST #30
Comments
@SebScoFr update on this, I have the fix in this branch. I pulled the code that was doing the connections out of the Java lib and into the project so we can modify the host. The plugin seems to be working fine, but it looks like it's trying to send the emulator commands that it doesn't support. Tagging @rosbo to see if he's seen something like this before because I think he's used the emulator. |
Thanks @josephlewis42 |
@josephlewis42 I have used it a little while ago and didn't see this issue, do you mind sharing the logs of the messages that are failing? |
@rosbo after a little more digging it looks like it might be an encryption issue. The local Pub/Sub emulator does not use encryption and the library seemingly removed support for setting the transports to using plaintext with the gRPC client. It's a known issue googleapis/google-cloud-java#2248 and is on their work backlog. Here are my logs from the Pub/Sub emulator with LogStash running:
Here they are with the Python client:
I could switch us over to using the HTTP2 client, but it's going to be a fair bit of work on our end and will probably decrease efficiency. |
This plugin should have the ability to pull the PubSub host from the PUBSUB_EMULATOR_HOST environment variable, so that it can be used in dev mode with the PubSub emulator.
The text was updated successfully, but these errors were encountered: