question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Failing to deploy on preview due to extra dash in target `channelId`

See original GitHub issue

Action config

- uses: FirebaseExtended/action-hosting-deploy@v0
   with:
     repoToken: '${{ secrets.GITHUB_TOKEN }}'
     firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PRJCT_ME }}'
     projectId: prjct-me

Error message

/opt/hostedtoolcache/node/12.22.6/x64/bin/npx firebase-tools hosting:channel:deploy pr7-feature_react-route- --expires 7d --project prjct-me --json
  ***
    "status": "error",
    "error": "HTTP Error: 400, Request contains an invalid argument."
  ***
  ***
    "status": "error",
    "error": "HTTP Error: 400, Request contains an invalid argument."
  ***

Expected behavior

Action continues to deploy the hosting app on preview

Actual behavior

Action failed to run due to an invalid argument. It seems that the error is on the parameter after deploy (i.e., pr7-feature_react-route-. For reference, the PR branch I’m working on is feature/react-route-pages, so it left out the pages bit. I’m fine with any name, but some truncation might be needed to remove extra dashes.

EDIT: Just saw that there’s a channelId field but I think this is still worth checking for autogenerated IDs.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

3reactions
stevecode21commented, Sep 21, 2021

I’ve tested again, and now it’s working, maybe the error came from firebase directly, can you test it again guys?

1reaction
jaygcoder2020commented, Sep 22, 2021

Thanks @danieljimeneznz, in which case I’ll close this one and refer to #3768. Cheers mate. 🥂

Read more comments on GitHub >

github_iconTop Results From Across the Web

hosting:channel:deploy with new channel returns 400 ... - GitHub
So far I've hit this error in: Github Actions (build_and_preview); Locally in multiple accounts, with pre-existing and new projects. [REQUIRED] ...
Read more >
Cannot Preview View When Target is IOS And Watch Extension
If the target is only watch, there's no problem. But if the scheme is Apple Watch, and the target is both IOS and...
Read more >
Preview - Channel - PRTG Network Monitor - Version History
We fixed an issue for the HTTP Push Data sensor that showed an access violation error with the message Failed to handle request....
Read more >
REST API Developer Guide
Use this guide to set up your deployment environment and learn about advanced details ... GET or HEAD requests, and a 412 Precondition...
Read more >
Release Notes for LiveSwitch Server v1.0 - v1.11
Fixed a bug where changing the direction of an MCU/SFU audio stream from sendrecv/sendonly to inactive/recvonly (disabling it) and then back to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found