Webux Lab

Par Studio Webux

Tester Sentry avec une requête cURL

TG
Tommy Gingras Studio Webux S.E.N.C 2021-08-02

Tester Sentry avec une requête cURL

C’est seulement un test rapide pour comprendre comment Sentry fonctionne pour envoyer des erreurs.

curl --location --request POST 'https://<PUBLIC_KEY>@<BASE_URI>/api/<PROJECT_ID>/store/' \
--header 'X-Sentry-Auth: Sentry sentry_version=7,sentry_key=<PUBLIC_KEY>,sentry_client=raven-bash/0.1' \
--header 'Content-Type: application/json' \
--data-raw '{
    "message":"Hello World"
}'

Pour connaitre les informations :

Allez à https://sentry.io/settings/<votre-organisation>/projects/<votre-projet>/keys/
puis cliquer sur configure en bas de la page vous allez voir toutes les informations.

Vous n’avez pas besoin de la secret key.

Tester les accès

J’utilise Postman pour faire le test.

Origin: *

Le test de postman a fonctionné sans problème.

Origin: webuxlab.com

Le test de postman a fonctionné sans problème.

Source


Recherche