-
Notifications
You must be signed in to change notification settings - Fork 29
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
TypeError: main_handler() takes 1 positional argument but 2 were given
with @app.topic('mytopic')
#95
Comments
what is the entrypoint for the cloudfunction? I am thinking the entrypoint is pointing to cloudfunction recently had a breaking change (#88 ) which requires you to now wrap the app with |
I used the following
In a second attempt, I wrapped the app using |
I did the following modifications but the deployment fails and throws a Function code
config.json
Error Traceback
It looks similar to [Cloudfunction] Error type <class 'goblet.app.Goblet'> during deployment #88 but I made sure to wrap the app using |
ah sorry for the delay and you are correct. this is because of #88 and didnt catch this error in pubsub or storage triggers. have a fix and will release later today |
should be live in |
Hello,
I created a topic in PubSub called mytopic and I tried to create a function triggered by a message in this topic. The deployment is successful but after I publish a message, I get a
TypeError: dbt_handler() takes 1 positional argument but 2 were given
. Here is the code of my function and the error traceback :Function code
Error traceback
What am I supposed to provided to
main_handler
?Thank you !
The text was updated successfully, but these errors were encountered: