jnunemaker / httparty

:tada: Makes http fun again!
MIT License
5.79k stars 968 forks source link

Bug in post function #775

Closed berti92 closed 10 months ago

berti92 commented 1 year ago

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 commented 10 months ago

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.