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

Bug in post function #775

Closed
berti92 opened this issue Jan 5, 2023 · 1 comment
Closed

Bug in post function #775

berti92 opened this issue Jan 5, 2023 · 1 comment

Comments

@berti92
Copy link

berti92 commented Jan 5, 2023

Sorry, I couldn't find a better subject.

Our app sends a POST to MS Teams. Every POST triggers a 500 on MS Teams.

I thought Teams had a problem, but I can not explain why the exact same code with net/http works.

As example: Set up an incoming webhook in MS Teams and then send a Post via httparty and then via net/http.

Payload as json:

{
    "@type": "MessageCard",
    "@context": "http://schema.org/extensions",
    "themeColor": "C51718",
    "summary": "Test hat zu \"Test\" eine Frage gestellt:"
}

The payload is not important, I can't manage to get a working POST to MS Teams in any way with httparty.

I couldn't provide a URL, because we use a private incoming webhook.

I use version 0.21.0 under Ubuntu 22.04 LTS with Ruby 3.1.3

@jnunemaker
Copy link
Owner

I'd be happy to investigate if you can get me a script that shows the bug. Without that, I'm not sure what to do.

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

2 participants