-
Notifications
You must be signed in to change notification settings - Fork 699
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
Not able to send message to pub/sub emulator via java/springboot app #1911
Comments
@beena-yatin-kanyal Are you using the APIary client or the GAPIC client? They are very different. At this point, it's best to be using GAPIC and it has full support for the PubSub emulator. https://github.com/GoogleAPIs/java-pubsub Our spring boot extensions support the GAPIC Pub Sub library. This repository is for APIary clients. Additional material: |
Hello @lesv. I hope your vacation was great. I am not sure if I understand your answer correctly. we are using the below library to publish/subscribe messages from the real-time GCP pub/sub however the same code breaks (on calling
Do you want me to change this to something else? Probably would appreciate it if this can be reopened and addressed. |
@lesv - can we please have this reopened or if maybe anyone can help? this is impacting development guidelines, Note - remove the |
@lesv much thanks. can you or the google development team take a look at it and suggest why the pub/sub emulator is not able to send the message to the push-endpoint? Looking forward to the help. |
this can be closed now as I have resolved the issue. thanks. To get the pub/sub working on the emulator set the publisher builder with the mock channel provider and credential provider values. Snippet below -
In my opinion, pub/sub emulator documentation needs to be updated. |
I am using the pub/sub emulator to emulate the pub-sub feature of the google-cloud platform before going live in our spring boot application.
Step[1] - running the emulator -
gcloud beta emulators pubsub start --project="$PUBSUB_PROJECT_ID" --host-port="$PUBSUB_EMULATOR_HOST"
-- output --
Step[2] - creating the topics/subscription on the emulator using the python repo
-- output --
Step[3] - sending the message via the springboot app.
Now once I send the message to the emulator I get the below exception as soon as the
get()
method is called in thereturn
statement. can someone advise what is wrong here or with the emulator?The text was updated successfully, but these errors were encountered: