GoogleCloudPlatform / data-science-on-gcp

Source code accompanying book: Data Science on the Google Cloud Platform, Valliappa Lakshmanan, O'Reilly 2017
Apache License 2.0
1.31k stars 715 forks source link

Chapter 2: call_cf.sh not working #98

Closed kaijennissen closed 4 years ago

kaijennissen commented 4 years ago

For some reason the call_cf.sh script does not work as expected. I've played a little with the year and month specified in the file, f.e. changed the year to 2016 and tried various values for the month. When running the file as bash script no files are added to the bucket. I've no idea why it fails because running the commands line by line in the shell works just fine and the requested month is added to the bucket.

lakshmanok commented 4 years ago

thanks for fixing in PR 97!

kaijennissen commented 4 years ago

Unfortunately PR 97 does not fix this issue.

lakshmanok commented 4 years ago

try now. The PATH variable was getting clobbered.

kaijennissen commented 4 years ago

I've already used the latest version with the UPATH variable. There is no error message but the cloud function is not triggered since there are no entries in the logs. While supplying the content of the /tmp/message file to the testing section of the cloud function works just fine.

kaijennissen commented 4 years ago

The problem was the URL variable in the curl command.

lakshmanok commented 4 years ago

fixed the URL ...

lak

On Tue, Oct 6, 2020 at 10:13 PM kja notifications@github.com wrote:

The problem was the URL variable in the curl command.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/data-science-on-gcp/issues/98#issuecomment-704696567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANJPZ5UAFXQSKFZFUINWILSJP2I7ANCNFSM4SF6KMKA .