Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The action init failed with http error #8

Closed
tianhaoz95 opened this issue Sep 30, 2019 · 3 comments
Closed

The action init failed with http error #8

tianhaoz95 opened this issue Sep 30, 2019 · 3 comments

Comments

@tianhaoz95
Copy link
Contributor

Hi, I was trying to use it for a flutter app I recently started, but the action init failed with the following message:

failed_screenshot

Here is the action workflow I added:

name: PR checks

on: [push]

jobs:
  test:
    name: Test on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-java@v1
        with:
          java-version: '12.x'
      - uses: subosito/flutter-action@v1
        with:
          flutter-version: '1.8.4'
          channel: 'beta'
      - run: flutter pub get
      - run: flutter test

Do you know what might have happened and what might be a work around? I can probably post a fix if you can point me to where you think the problem is.

@subosito
Copy link
Owner

As you can see here, https://flutter.dev/docs/development/tools/sdk/releases?tab=linux, there is no version 1.8.4 for beta channel. Change it to 1.8.3 or any valid value to fix that.

@tianhaoz95
Copy link
Contributor Author

ohhh right. ok it works no. I think it will be good to change the code example in the README to something that works. I just opened a PR #9 to change the version to make is consistent with the first code snippet and also works.

@amenk
Copy link

amenk commented Jan 10, 2020

Would be cool to print a proper error message like the URL which it tries to fetch / or flutter version does not exist...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants