Giter VIP home page Giter VIP logo

cloud-code-custom-templates's Introduction

Hi ๐Ÿ‘‹, I'm Mete Atamel

Iโ€™m a Software Engineer and a Developer Advocate with 18+ years of experience. Currently, I work in the Developer Relations team at Google in London. I build tools, demos, tutorials, and give talks to educate and help developers to be successful on Google Cloud. As a regular speaker at tech conferences, I have spoken over 345+ events since 2016 on modern application development topics such as Kubernetes, Istio, Knative, serverless, event-driven architectures, and microservice orchestration. Prior to my current role, I was a Software Engineer/Architect/Tech Lead at Nokia, EMC, Adobe, Skype, and Microsoft building various client and server technologies, resulting in multiple patents.

Connect with me:

meteatamel meteatamel mete.atamel meteatamel @meteatamel

Languages and Tools:

azure csharp docker dotnet flutter gcp git java kubernetes linux nodejs

cloud-code-custom-templates's People

Contributors

mco-gh avatar meteatamel avatar

Watchers

 avatar  avatar  avatar  avatar

cloud-code-custom-templates's Issues

Improve test_cloud.sh scripts

Trigger the event but don't check the logs right away as it takes a while for logs to show up..Either give the user command to check the logs on their own or wait longer than 3 seconds for logs (but this is not reliable)

Implement test_cloud.sh in hello-auditlog templates

Currently, this is not implemented, as it's a little tricky. We should find an easy to reproduce AuditLog, update templates to use it, update test_local.sh to use that AuditLog, update setup.sh to enable that audit log automatically and then have a proper test_cloud.sh to test it.

The current one uses BigQuery, maybe we could use that too but not sure how easy it is to trigger it.

Error in Java: Cloud Functions - hello-pubsub

Ends up with this error sometimes:

Failed to execute functions.Function
com.google.protobuf.InvalidProtocolBufferException: Field google.events.cloud.pubsub.v1.PubsubMessage.message_id has already been set.
at com.google.protobuf.util.JsonFormat$ParserImpl.mergeField(JsonFormat.java:1647)
at com.google.protobuf.util.JsonFormat$ParserImpl.mergeMessage(JsonFormat.java:1493)
at com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1451)
at com.google.protobuf.util.JsonFormat$ParserImpl.parseFieldValue(JsonFormat.java:2011)
at com.google.protobuf.util.JsonFormat$ParserImpl.mergeField(JsonFormat.java:1662)
at com.google.protobuf.util.JsonFormat$ParserImpl.mergeMessage(JsonFormat.java:1493)
at com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1451)
at com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1333)
at com.google.protobuf.util.JsonFormat$Parser.merge(JsonFormat.java:473)
at functions.Function.accept(Function.java:40)
at com.google.cloud.functions.invoker.BackgroundFunctionExecutor$CloudEventFunctionExecutor.serviceCloudEvent(BackgroundFunctionExecutor.java:317)
at com.google.cloud.functions.invoker.BackgroundFunctionExecutor.lambda$serviceCloudEvent$6(BackgroundFunctionExecutor.java:362)
at com.google.cloud.functions.invoker.BackgroundFunctionExecutor.runWithContextClassLoader(BackgroundFunctionExecutor.java:386)
at com.google.cloud.functions.invoker.BackgroundFunctionExecutor.serviceCloudEvent(BackgroundFunctionExecutor.java:362)
at com.google.cloud.functions.invoker.BackgroundFunctionExecutor.service(BackgroundFunctionExecutor.java:328)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755)

Error in Java: Cloud Run - hello-pubsub template

It ends up with this error when triggered by test_cloud.sh:

Triggering hello-pubsub-run-java by sending a message to topic cloud-functions-topic
messageIds:

  • '7101780159878866'
    Wait a little and read the logs
    2023-03-06 09:28:36 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800) ~[netty-transport-classes-epoll-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:499) ~[netty-transport-classes-epoll-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:397) ~[netty-transport-classes-epoll-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.85.Final.jar!/:4.1.85.Final]
    2023-03-06 09:28:36 at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
    2023-03-06 09:28:36 POST 500 https://hello-pubsub-run-java-wska3uftcq-uc.a.run.app/?__GCP_CloudEventsMode=CUSTOM_PUBSUB_projects%2Fcloudcode-atamel%2Ftopics%2Fcloud-functions-topic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.