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 in sending message to slack Error: Request failed with status code 400 #7

Closed
stephenwang1011 opened this issue Jan 7, 2021 · 3 comments

Comments

@stephenwang1011
Copy link

When I sending this command:
newman run /Users/young/Desktop/TestMock.postman_collection.json --suppress-exit-code -r slackmsg --reporter-slackmsg-webhookurl 'https://hooks.slack.com/services/xxxxxxxx/B01HU2PQKCK/ayUEz4pumSbXuilJfdsfdsg2z1fX'
The error message will show:
Error in sending message to slack Error: Request failed with status code 400

@jackcoded
Copy link
Owner

jackcoded commented Jan 8, 2021

Hey Stephen,

Hmmm 400 either means invalid payload, or invalid user.
image

If it's a payload issue, might be an edge case error.
If possible can you send me the log to payload if you know how to do it. Otherwise if your collection generic and I can use it, you can send me that and ill test it out.
Regards,
Jack

@stephenwang1011
Copy link
Author

Hey Stephen,

Hmmm 400 either means invalid payload, or invalid user.
image

If it's a payload issue, might be an edge case error.
If possible can you send me the log to payload if you know how to do it. Otherwise if your collection generic and I can use it, you can send me that and ill test it out.
Regards,
Jack

Thanks a lot

@AdamWillden
Copy link

@jackcoded we're getting this same issue, how do we get the payload?

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