I'm trying to deploy the code using Webhooks, but I receive a 404 error.

Hi! 

I’m Noura TSE at Google. Have you ever get this page after trying to deploy lookML code to production? 

11478d60-ae37-4fdc-8cbb-048f17a83f99.png
404 Not Found

You’ll get this error if you try to deploy via a webhook for the first time. The trick here is to deploy code manually via the Looker UI first. 

If you are stuck with this error follow this.

How to:

Go to Deployment Manager tab and select a commit to deploy

92da1593-459b-4c43-bb03-f1e1a8c560b7.png
Click on “Select Commit”
fd152c56-c56a-4111-8b21-1d0ecc818e1d.png

You can choose to deploy the commit with or without tag. 

A manual deployment will look like this

75a3fbde-0964-4ffb-8eac-a8d2da5dde80.png

Once you complete this, you will be able to deploy via the webhooks

You can try to deploy via the browser of via command line on a terminal

https://[Url instance name]/webhooks/projects/[project_name]/deploy

or

curl -i -H "X-Looker-Deploy-Secret:<Secret>" https://[url instance name]/webhooks/projects/[project_name]/deploy

Cheers! 

Hope this is helpful!

Noura

Version history
Last update:
‎10-28-2022 03:00 PM
Updated by: