400 Error from Github Page during Deployment

deployError: Request failed with status code 400 deployEnvironment URL ‘’ is not a valid http(s) URL, so it will not be shown as a link in the workflow graph.

2022-03-17T07:27:54.6961485Z Requested labels: ubuntu-latest
2022-03-17T07:27:54.6961539Z Job defined at: g1jung/g1jung.github.io/dynamic/pages/pages-build-deployment@refs/heads/main
2022-03-17T07:27:54.6961563Z Waiting for a runner to pick up this job...
2022-03-17T07:27:54.9529131Z Job is waiting for a hosted runner to come online.
2022-03-17T07:27:58.3563677Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-03-17T07:28:00.5176707Z Current runner version: '2.288.1'
2022-03-17T07:28:00.5211063Z ##[group]Operating System
2022-03-17T07:28:00.5211557Z Ubuntu
2022-03-17T07:28:00.5212033Z 20.04.4
2022-03-17T07:28:00.5212258Z LTS
2022-03-17T07:28:00.5212648Z ##[endgroup]
2022-03-17T07:28:00.5212931Z ##[group]Virtual Environment
2022-03-17T07:28:00.5213303Z Environment: ubuntu-20.04
2022-03-17T07:28:00.5213806Z Version: 20220227.1
2022-03-17T07:28:00.5214275Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220227.1/images/linux/Ubuntu2004-Readme.md
2022-03-17T07:28:00.5215639Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220227.1
2022-03-17T07:28:00.5216295Z ##[endgroup]
2022-03-17T07:28:00.5216802Z ##[group]Virtual Environment Provisioner
2022-03-17T07:28:00.5217216Z 1.0.0.0-main-20220307-1
2022-03-17T07:28:00.5217503Z ##[endgroup]
2022-03-17T07:28:00.5218517Z ##[group]GITHUB_TOKEN Permissions
2022-03-17T07:28:00.5219211Z Contents: read
2022-03-17T07:28:00.5219770Z Metadata: read
2022-03-17T07:28:00.5220387Z Pages: write
2022-03-17T07:28:00.5220818Z ##[endgroup]
2022-03-17T07:28:00.5226165Z Secret source: Actions
2022-03-17T07:28:00.5226819Z Prepare workflow directory
2022-03-17T07:28:00.6191217Z Prepare all required actions
2022-03-17T07:28:00.6400081Z Getting action download info
2022-03-17T07:28:00.8275133Z Download action repository 'actions/deploy-pages@v1' (SHA:479e82243a95585ebee8ab037c4bfd8e6356a47b)
2022-03-17T07:28:01.7548952Z ##[group]Run actions/deploy-pages@v1
2022-03-17T07:28:01.7549809Z with:
2022-03-17T07:28:01.7550346Z   token: ***
2022-03-17T07:28:01.7550819Z   timeout: 600000
2022-03-17T07:28:01.7551250Z   error_count: 10
2022-03-17T07:28:01.7551754Z   reporting_interval: 1000
2022-03-17T07:28:01.7552520Z ##[endgroup]
2022-03-17T07:28:01.9930233Z Sending telemetry for run id 1997210877
2022-03-17T07:28:02.2966660Z ##[group]Run actions/deploy-pages@v1
2022-03-17T07:28:02.2967088Z with:
2022-03-17T07:28:02.2967452Z   token: ***
2022-03-17T07:28:02.2967724Z   timeout: 600000
2022-03-17T07:28:02.2967968Z   error_count: 10
2022-03-17T07:28:02.2968250Z   reporting_interval: 1000
2022-03-17T07:28:02.2968493Z ##[endgroup]
2022-03-17T07:28:02.4807172Z Actor: github-pages[bot]
2022-03-17T07:28:02.4807611Z Action ID: 1997210877
2022-03-17T07:28:02.4808475Z Artifact URL: https://pipelines.actions.githubusercontent.com/cOVa98njkxPlL99vZUZ2Ix4ySCmpPJRbMo7hQhVZgA7RC0CaUM/_apis/pipelines/workflows/1997210877/artifacts?api-version=6.0-preview
2022-03-17T07:28:02.5621201Z {"count":1,"value":[{"containerId":3574368,"size":4904960,"signedContent":null,"fileContainerResourceUrl":"https://pipelines.actions.githubusercontent.com/cOVa98njkxPlL99vZUZ2Ix4ySCmpPJRbMo7hQhVZgA7RC0CaUM/_apis/resources/Containers/3574368","type":"actions_storage","name":"github-pages","url":"https://pipelines.actions.githubusercontent.com/cOVa98njkxPlL99vZUZ2Ix4ySCmpPJRbMo7hQhVZgA7RC0CaUM/_apis/pipelines/1/runs/120/artifacts?artifactName=github-pages","expiresOn":"2022-06-15T07:27:51.3417529Z","items":null}]}
2022-03-17T07:28:02.5622945Z Creating deployment with payload:
2022-03-17T07:28:02.5623546Z {
2022-03-17T07:28:02.5624644Z 	"artifact_url": "https://pipelines.actions.githubusercontent.com/cOVa98njkxPlL99vZUZ2Ix4ySCmpPJRbMo7hQhVZgA7RC0CaUM/_apis/pipelines/1/runs/120/artifacts?artifactName=github-pages&%24expand=SignedContent",
2022-03-17T07:28:02.5625654Z 	"pages_build_version": "e6f49a545eb4b9181f083de1dba189248f1859a0",
2022-03-17T07:28:02.5685651Z 	"oidc_token": "***"
2022-03-17T07:28:02.5687364Z }
2022-03-17T07:28:02.8843014Z Failed to create deployment for e6f49a545eb4b9181f083de1dba189248f1859a0.
2022-03-17T07:28:02.8844349Z {"message":"Deployment request failed for e6f49a545eb4b9181f083de1dba189248f1859a0 due to in progress deployment. Please cancel e5b26fbdb89226b7cc141d5d411ba5aa0a6ee2bc first or wait for it to complete.","documentation_url":"https://docs.github.com/rest/reference/repos#create-a-github-pages-deployment"}
2022-03-17T07:28:02.8871038Z ##[error]Error: Request failed with status code 400
2022-03-17T07:28:02.8884236Z ##[error]Error: Request failed with status code 400
2022-03-17T07:28:02.8886876Z Sending telemetry for run id 1997210877
2022-03-17T07:28:03.2153385Z Evaluate and set environment url
2022-03-17T07:28:03.2162126Z Evaluated environment url: 
2022-03-17T07:28:03.2162690Z Cleaning up orphan processes

So the problem is obvious. I never tried to modify other files except for social-media.yml. At first, at email part, it said url : “mailto:” but I misunderstood how to change that part and I fixed it with my email. However, I realized that is for url so I tried to fix with every way include “mailto:” but now every deployment cause an error 400. What should I do?

and this is my github project link: GitHub - g1jung/g1jung.github.io

seems it’s already fixed,

there was just an outage

2 Likes

It was a bug of GitHub…it wasn a error of your side…now is solve

2 Likes

Hello, just search for the same problem and find this thread. May I know what is the solution for this one?

In my case, I didn’t think the website was built with Jykell but it builds with it on my past deployments but now it builds but failed to deploy.

My repo link: GitHub - dscsticdo/dscsticdo.github.io: Official Website of Google Developer Student Clubs STI College Cagayan de Oro.

at that moment, it was github shortage so that I could not push it but it solved next morning. How about wait for a night?

thank you! yes I found out it was solved next morning

Hi I encountered the same problem here. Would you please take a look? I encountered the same deployment error after successful build. The link is pages build and deployment · AdvML-Frontier/AdvML-Frontier.github.io@4bff1be · GitHub. I tried to return to a pervious version, which deploys successfully before but now it still fails.

Same problem! I just encountered such problem and I thought there was something wrong with my code. After I reset to a previous edition, there is still the deployment error.

Yesterday I had the same problem…