Giter Site home page Giter Site logo

Comments (3)

deterministicj avatar deterministicj commented on June 7, 2024

I also manually tested sending a POST to the webhook to make sure it wasn't permissions on the Discord end. No issues with that. Seems to be something on the server end.

from humblebundlebot.

Bucketsmith avatar Bucketsmith commented on June 7, 2024

I could not get it to work, either.

from humblebundlebot.

Casper-O avatar Casper-O commented on June 7, 2024

Did a test request with postman and Insomnia, with postman i get the response "1" and with Insomnia it is empty - if i send wrong type or webhook it gives an error. but i see nothing posted to Discord

* Preparing request to https://humblebundlenotifications.azurewebsites.net/api/TestWebhook/
* Current time is 2022-10-31T18:48:43.053Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable SSL validation
* Found bundle for host humblebundlenotifications.azurewebsites.net: 0x2b69e8655a0 [serially]
* Can not multiplex, even if we wanted to!
* Re-using existing connection! (#4) with host humblebundlenotifications.azurewebsites.net
* Connected to humblebundlenotifications.azurewebsites.net (52.252.160.21) port 443 (#4)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):

> POST /api/TestWebhook/ HTTP/1.1
> Host: humblebundlenotifications.azurewebsites.net
> User-Agent: insomnia/2022.6.0
> Content-Type: application/json
> Accept: */*
> Content-Length: 179

| {
|     "type": 0,
|     "webhook": "https://discord.com/api/webhooks/*************",
|     "webhookType": 0
| }

* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Mark bundle as not supporting multiuse

< HTTP/1.1 200 OK
< Content-Length: 0
< Date: Mon, 31 Oct 2022 18:48:42 GMT
< Server: Microsoft-IIS/10.0
< Cache-Control: no-cache
< Expires: -1
< Pragma: no-cache
< X-Powered-By: ASP.NET

JSON request works fine

* Preparing request to https://humblebundlenotifications.azurewebsites.net/api/TestWebhook/
* Current time is 2022-10-31T18:46:19.860Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable SSL validation
* Too old connection (490 seconds), disconnect it
* Connection 2 seems to be dead!
* Closing connection 2
* TLSv1.2 (OUT), TLS header, Unknown (21):
* TLSv1.2 (OUT), TLS alert, decode error (562):
* Too old connection (490 seconds), disconnect it
* Connection 3 seems to be dead!
* Closing connection 3
* TLSv1.2 (OUT), TLS header, Unknown (21):
* TLSv1.2 (OUT), TLS alert, decode error (562):
* Hostname in DNS cache was stale, zapped
*   Trying 52.252.160.21:443...
* Connected to humblebundlenotifications.azurewebsites.net (52.252.160.21) port 443 (#4)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=WA; L=Redmond; O=Microsoft Corporation; CN=*.azurewebsites.net
*  start date: Mar 14 18:39:55 2022 GMT
*  expire date: Mar  9 18:39:55 2023 GMT
*  subjectAltName: host "humblebundlenotifications.azurewebsites.net" matched cert's "*.azurewebsites.net"
*  issuer: C=US; O=Microsoft Corporation; CN=Microsoft Azure TLS Issuing CA 01
*  SSL certificate verify ok.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):

> POST /api/TestWebhook/ HTTP/1.1
> Host: humblebundlenotifications.azurewebsites.net
> User-Agent: insomnia/2022.6.0
> Content-Type: application/json
> Accept: */*
> Content-Length: 115

| {
|     "type": 0,
|     "webhook": "https://webhook.site/******",
|     "webhookType": 1
| }

* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Mark bundle as not supporting multiuse

< HTTP/1.1 200 OK
< Content-Length: 0
< Date: Mon, 31 Oct 2022 18:46:20 GMT
< Server: Microsoft-IIS/10.0
< Cache-Control: no-cache
< Expires: -1
< Pragma: no-cache
< X-Powered-By: ASP.NET


* Connection #4 to host humblebundlenotifications.azurewebsites.net left intact

from humblebundlebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.