Google storage file upload issue using stream

everyone. I am going to upload image from react front end and the image file is being sent as buffer. In the backend, the code looks like this.

  const { Storage } = require("@google-cloud/storage");
const path = require("path");
const send = require("../../send.js");

const serviceKey = path.join(__dirname, "./keys.json");

const storage = new Storage({
  keyFilename: serviceKey,
  projectId: "myprojectID",
});
const bucket = storage.bucket("bucketName");

const uploadImage = async (buffer) => {
  const file = bucket.file("newImage.png");
  await file.save(buffer);
  await file.makePublic();
  const publicUrl = `http://storage.googleapis.com/${bucket.name}/${file.name}`;
  return publicUrl;
};

Looks like the file is uploading correctly to the google storage bucket but when this code runs, I get this warning

*! Google API requested!

URL: "https://www.googleapis.com/oauth2/v4/token"
Be careful, this may be a production service.
! Google API requested!
URL: "https://storage.googleapis.com/upload/storage/v1/b/{"myprojectID"}/o?name=newImage.png&uploadType=resumable"
Be careful, this may be a production service. ! Google API requested!
URL: "https://storage.googleapis.com/upload/storage/v1/b/{"myprojectID"}/o?name=newImage.png&uploadType=resumable&upload_id=ABg5-UxkB7bSW4GOIbaxItWSb94SlAqLsQNK5Zec0v_yN0fYs-1r65jjBSF-yBLlt3VJs3Duhz-uEEAWFycLelhoXRNeewsbFw"* ! Google API requested!
URL: "https://storage.googleapis.com/storage/v1/b/{"myprojectID"}/o/newImage.png/acl?"
And the size is the same on the storage but when i click that link on the storage, the image is not showing and if i click the "https://storage.googleapis.com/storage/v1/b/{"myprojectID"}/o/newImage.png/acl?" it displays this 401 error on the browser.

    {
  "error": {
    "code": 401,
    "message": "Anonymous caller does not have storage.objects.getIamPolicy access to the Google Cloud Storage object.",
    "errors": [
      {
        "message": "Anonymous caller does not have storage.objects.getIamPolicy access to the Google Cloud Storage object.",
        "domain": "global",
        "reason": "required",
        "locationType": "header",
        "location": "Authorization"
      }
    ]
  }
}

Can anyone help me? Thanks in advance.