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

Nothing is happeneing #1

Open
ghost opened this issue Apr 15, 2020 · 1 comment
Open

Nothing is happeneing #1

ghost opened this issue Apr 15, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 15, 2020

I followed your exact instructions but I'm not seeing anything at the destination bucket.

When I use the "TESTING" section in the Cloud Function I get this error"
TypeError: Cannot read property 'bucket' of undefined at exports.logTransformer (/srv/index.js:35:40) at /worker/worker.js:825:24 at at process._tickDomainCallback (internal/process/next_tick.js:229:7)

I used the console to create the Function:

I choose Runtime: Node.js 8

In the Environment section I added:
Environment variables
DEST_BUCKET_NAME -> destestexport

I set the following configs in the Trigger section
Trigger type -> Cloud Storage
Bucket -> bucketname
Event Type -> Finalize/Create

I copied the index.js and package.json and paste them at the Source
And I set
Function to execute -> logTransformer

Can you let me know what I missed. I would appreciate the help.
Thanks

@ajaysourcedigital
Copy link

@MONTATICH the function is written only when you place a file in bucket. It doesnt run directly.

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

1 participant