Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Could Not Upload to Google Cloud Server

  • #4860
    Avatar photo[anonymous]

    Hi I’m still new with Publii and i’d like to integrate one to my website.

    So for some context, my website is running on Google App Engine using Next JS + Express JS.

    Somehow i’ve already tried to follow this instruction, yet still got no luck to integrate it with Publii

    in the deploment-errors.log it shows some error

    (node:12255) UnhandledPromiseRejectionWarning: TypeError: GoogleCloudStorage is not a function
        at GoogleCloud.initConnection (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/google-cloud.js:35:19)
        at Deployment.initSession (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/deployment.js:92:27)
        at process.<anonymous> (/Applications/Publii.app/Contents/Resources/app.asar/back-end/workers/deploy/deployment.js:10:28)
        at process.emit (events.js:210:5)
        at process.EventEmitter.emit (domain.js:476:20)
        at emit (internal/child_process.js:876:12)
        at processTicksAndRejections (internal/process/task_queues.js:81:21)
    (node:12255) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
    (node:12255) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

    I’d like to confirm several thing. Does the Bucket Name must be the name of the domain?

    I want to integrate Publii into one of the URL path which is /blog

    #4861
    Avatar photo[anonymous]

    Okay it seems downgrading the version to 0.37.2 fixed and able to upload to Google Cloud

    Anyone can give me a clue how to integrate express JS Routing with this Publii file that’s stored inside Google Cloud Storage?