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

##[error]Request failed with status code 400 #2

Open
sayjeyhi opened this issue Feb 29, 2020 · 8 comments
Open

##[error]Request failed with status code 400 #2

sayjeyhi opened this issue Feb 29, 2020 · 8 comments

Comments

@sayjeyhi
Copy link

I did tried this action but we are getting 400 status code .

name: Rocket.Chat Notification

on:
  pull_request:
    types: [opened, review_requested, reopened, assigned]

jobs:
  send_message_on_rocket:
    runs-on: ubuntu-latest
    steps:
      - name: Rocket.Chat Notification
        uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@master
        if: always()
        with:
          type: ${{ job.status }}
          job_name: '*Lint Check*'
          mention: 'here'
          mention_if: 'failure'
          channel: '#github-updates'
          username: 'github'
          url: ${{ secrets.ROCKETCHAT_WEBHOOK }}
@milandufek
Copy link

The same for me. secrets.ROCKETCHAT_WEBHOOK is correct, it generates payload for RocketChat and then ##[error]Request failed with status code 400

@sayjeyhi
Copy link
Author

@milandufek I think it is about rocket chat and it's API config, I tested the hook with postman and got error 400 .

@milandufek
Copy link

@sayjeyhi well, but I'm able to use the hook from other server using e.g. curl but the same doesn't work from GitHub container.

@sayjeyhi
Copy link
Author

@milandufek could you please test it with postman and tell the result?

@milandufek
Copy link

I got OK 200 response to hook url with no auth.

@igormartimiano
Copy link

igormartimiano commented Mar 17, 2020

Got the same problem. It just happens after a failed step on an action though

@sayjeyhi
Copy link
Author

hmmmm, I have no idea whats happening 🚶

@madalozzo
Copy link

I had that same problem. Solved removing "mention: 'here'".

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

4 participants