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

grpc error when publishing to a pubsub topic within a function #51

Open
K-Niu opened this issue Apr 24, 2018 · 5 comments
Open

grpc error when publishing to a pubsub topic within a function #51

K-Niu opened this issue Apr 24, 2018 · 5 comments

Comments

@K-Niu
Copy link

K-Niu commented Apr 24, 2018

Has anyone else had trouble publishing to a pubsub topic from within a cloud function?

I have deployed a cloud function something along the lines of:

from google.cloud import pubsub

def pubsub_handler(message):
    client = pubsub.PublisherClient()
    topic = 'projects/TEST-PROJECT/topics/TEST-TOPIC'
    client.publish(topic=topic, data='', test_param='test')

handle_pubsub_event(pubsub_handler)

and when I invoke the function and look at the logs, I see the following error:

Exception in 'grpc._cython.cygrpc.ssl_roots_override_callback' ignored E0424 15:48:44.194749483 17 security_connector.cc:1170] assertion failed: pem_root_certs != nullptr

I am using Python 2.7

@MartinSahlen
Copy link
Owner

Did you do any more research on this issue?

@K-Niu
Copy link
Author

K-Niu commented May 18, 2018

I looked into it a little bit but unfortunately I was unable to resolve it.

@Vonisoa
Copy link

Vonisoa commented Jul 24, 2018

I have the same trouble but with a .exe built with pyinstaller! did you find a solution?

@K-Niu
Copy link
Author

K-Niu commented Jul 24, 2018

I was not able to find a solution, but Google is releasing Python 3.7 support for Cloud Functions in the next couple days!

@MartinSahlen
Copy link
Owner

Yes as I also wrote in the readme a few weeks ago - I would highly recommend looking into using the official products, this library is a POC and is (hopefully) approaching end of life as google launches proper python support!

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

3 participants