#[SOLVED] GCP, chunk2 collaboration

9 messages · Page 1 of 1 (latest)

kindred falcon
#

Hey all, I'm using GCP and done chunk 1 and part of 3, currently doing chunk 2. If you're interested to collab for pushing through obstacles, comment here and let's setup quick review sessions..

austere lintel
#

I'm stuck on chunk 2, trying to figure out how to write my Python code in cloud Run that will save a value to Firestore. Which part are you working on?

kindred falcon
#

Same. First I created cloud function in the same project and then realized I need to create a new project for that, then used cloud run in the new project but got stuck in running the test "hello world" based on docs, an annoying error while deployment

kindred falcon
#

@austere lintel the error comes from container image, so I might try a dockerhub prebuilt image to see if it works

austere lintel
#

Why do you need to start a new cloud project to create a cloud function? I tried using cloud run and it kept failing the test, so I went back to cloud function and even though I had to relaunch it 17 times because my code was wrong. It finally worked this morning.

kindred falcon
#

@austere lintel that's what Forrest suggests, I think it has sth to do with CI/CD, since I use a personal account and have no organization/folders, I created a new project for dev/test. Good job on the cloud function, did you have to map the ports again? I'm curious, what was the problem with the code? I believe cloud run is a bit overkill here, I might do another project with cloud run in the future

austere lintel
#

Cloud Run is totally over kill, I'm glad I'm using Function now. The problem with my code was so stupid, my entry point was incorrect. Now I'm trying to figure if my gateway is working properly. I followed a tutorial that had me create a GET openapi spec when I needed a POST one. I'm testing it on Postman right now. QUESTION: When I test my gateway, is it supposed to store a value in Firestore like when I test my Function? Postman shows that the gateway URL passes, but it doesn't post the count to my firestore.

kindred falcon
#

[ongoing] GCP, chunk2 collaboration

kindred falcon
#

[Solved] GCP, chunk2 collaboration