'Not able to Link web app to Hosting site in firebase

I created a web app, but when I try to link it to the Hosting site, it throws an error. error: {code: 400, message: "Request contains an invalid argument.", status: "INVALID_ARGUMENT"} I followed the below steps

  1. Sign in to Firebase, then open your project.
  2. Click. , then select Project settings.
  3. In the Your apps card, select the web app that you want to link to a Hosting site.
  4. Click Link to Firebase Hosting site.
  5. Select a Hosting site to link to, then click Link.

Can anyone please help me resolve this? I am trying to do this with an admin account.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source