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

Network_error #55

Open
rafael-nearshoredev opened this issue Apr 26, 2023 · 0 comments
Open

Network_error #55

rafael-nearshoredev opened this issue Apr 26, 2023 · 0 comments

Comments

@rafael-nearshoredev
Copy link

rafael-nearshoredev commented Apr 26, 2023

Environment

Sentry.java version 6.13.0 Leiningen 2.10.0 on Java 11.0.18 OpenJDK 64-Bit Server VM

Steps to Reproduce

I installed sentry on a clojure (backend) project and deployed on a pod. It works fine for a while but i notice that sentry stopped to getting alerts. I tested locally running a docker container and connect me to the repl i made a simple test using the send-event function.

(sentry/send-event (Exception. "test") "Test")
"944ce0722a334bf9b2888ed51f477717"

And when I check the docker logs, it appears that the expected result is the event ID, indicating that it is functioning properly. But notings shows on my project sentry

Here are my docker logs:

2023-04-26 16:03:16 DEBUG: Capturing event: 944ce0722a334bf9b2888ed51f477717
2023-04-26 16:03:16 INFO: sentry-external-modules.txt file was not found.
2023-04-26 16:03:16 INFO: Session is null on scope.withSession
2023-04-26 16:03:16 DEBUG: Serializing object: {
2023-04-26 16:03:16     "timestamp": "2023-04-26T21:03:16.515Z",
2023-04-26 16:03:16     "message": {
2023-04-26 16:03:16             "message": "Test test"
2023-04-26 16:03:16     },
2023-04-26 16:03:16     "exception": {
2023-04-26 16:03:16             "values": [
2023-04-26 16:03:16                     {
2023-04-26 16:03:16                             "type": "Exception",
2023-04-26 16:03:16                             "value": "test",
2023-04-26 16:03:16                             "module": "java.lang",
2023-04-26 16:03:16                             "thread_id": 61,
2023-04-26 16:03:16                             "stacktrace": {
2023-04-26 16:03:16                                     "frames": [
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "Thread.java",
2023-04-26 16:03:16                                                     "function": "run",
2023-04-26 16:03:16                                                     "module": "java.lang.Thread",
2023-04-26 16:03:16                                                     "lineno": 833,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "AFn.java",
2023-04-26 16:03:16                                                     "function": "run",
2023-04-26 16:03:16                                                     "module": "clojure.lang.AFn",
2023-04-26 16:03:16                                                     "lineno": 22,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "session.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "nrepl.middleware.session$session_exec$main_loop__32319",
2023-04-26 16:03:16                                                     "lineno": 217,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "session.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "nrepl.middleware.session$session_exec$main_loop__32319$fn__32323",
2023-04-26 16:03:16                                                     "lineno": 218,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "AFn.java",
2023-04-26 16:03:16                                                     "function": "run",
2023-04-26 16:03:16                                                     "module": "clojure.lang.AFn",
2023-04-26 16:03:16                                                     "lineno": 22,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "interruptible_eval.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "nrepl.middleware.interruptible_eval$interruptible_eval$fn__32249$fn__32253",
2023-04-26 16:03:16                                                     "lineno": 152,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "interruptible_eval.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "nrepl.middleware.interruptible_eval$evaluate",
2023-04-26 16:03:16                                                     "lineno": 56,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "interruptible_eval.clj",
2023-04-26 16:03:16                                                     "function": "invokeStatic",
2023-04-26 16:03:16                                                     "module": "nrepl.middleware.interruptible_eval$evaluate",
2023-04-26 16:03:16                                                     "lineno": 84,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "RestFn.java",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "clojure.lang.RestFn",
2023-04-26 16:03:16                                                     "lineno": 1523,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "main.clj",
2023-04-26 16:03:16                                                     "function": "doInvoke",
2023-04-26 16:03:16                                                     "module": "clojure.main$repl",
2023-04-26 16:03:16                                                     "lineno": 368,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "main.clj",
2023-04-26 16:03:16                                                     "function": "invokeStatic",
2023-04-26 16:03:16                                                     "module": "clojure.main$repl",
2023-04-26 16:03:16                                                     "lineno": 458,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "main.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "clojure.main$repl$fn__9215",
2023-04-26 16:03:16                                                     "lineno": 458,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "main.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "clojure.main$repl$read_eval_print__9206",
2023-04-26 16:03:16                                                     "lineno": 437,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "main.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "clojure.main$repl$read_eval_print__9206$fn__9209",
2023-04-26 16:03:16                                                     "lineno": 437,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "interruptible_eval.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "nrepl.middleware.interruptible_eval$evaluate$fn__32216",
2023-04-26 16:03:16                                                     "lineno": 87,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "RestFn.java",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "clojure.lang.RestFn",
2023-04-26 16:03:16                                                     "lineno": 425,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "core.clj",
2023-04-26 16:03:16                                                     "function": "doInvoke",
2023-04-26 16:03:16                                                     "module": "clojure.core$with_bindings_STAR_",
2023-04-26 16:03:16                                                     "lineno": 1990,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "core.clj",
2023-04-26 16:03:16                                                     "function": "invokeStatic",
2023-04-26 16:03:16                                                     "module": "clojure.core$with_bindings_STAR_",
2023-04-26 16:03:16                                                     "lineno": 1990,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "core.clj",
2023-04-26 16:03:16                                                     "function": "invokeStatic",
2023-04-26 16:03:16                                                     "module": "clojure.core$apply",
2023-04-26 16:03:16                                                     "lineno": 667,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "AFn.java",
2023-04-26 16:03:16                                                     "function": "applyTo",
2023-04-26 16:03:16                                                     "module": "clojure.lang.AFn",
2023-04-26 16:03:16                                                     "lineno": 144,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "AFn.java",
2023-04-26 16:03:16                                                     "function": "applyToHelper",
2023-04-26 16:03:16                                                     "module": "clojure.lang.AFn",
2023-04-26 16:03:16                                                     "lineno": 152,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "interruptible_eval.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "nrepl.middleware.interruptible_eval$evaluate$fn__32216$fn__32217",
2023-04-26 16:03:16                                                     "lineno": 87,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "core.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "clojure.core$eval",
2023-04-26 16:03:16                                                     "lineno": 3211,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "core.clj",
2023-04-26 16:03:16                                                     "function": "invokeStatic",
2023-04-26 16:03:16                                                     "module": "clojure.core$eval",
2023-04-26 16:03:16                                                     "lineno": 3215,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "Compiler.java",
2023-04-26 16:03:16                                                     "function": "eval",
2023-04-26 16:03:16                                                     "module": "clojure.lang.Compiler",
2023-04-26 16:03:16                                                     "lineno": 7149,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "Compiler.java",
2023-04-26 16:03:16                                                     "function": "eval",
2023-04-26 16:03:16                                                     "module": "clojure.lang.Compiler",
2023-04-26 16:03:16                                                     "lineno": 7194,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "form-init1439623880664568493.clj",
2023-04-26 16:03:16                                                     "function": "invoke",
2023-04-26 16:03:16                                                     "module": "gofapi.core$eval41404",
2023-04-26 16:03:16                                                     "lineno": 27,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             },
2023-04-26 16:03:16                                             {
2023-04-26 16:03:16                                                     "filename": "form-init1439623880664568493.clj",
2023-04-26 16:03:16                                                     "function": "invokeStatic",
2023-04-26 16:03:16                                                     "module": "gofapi.core$eval41404",
2023-04-26 16:03:16                                                     "lineno": 27,
2023-04-26 16:03:16                                                     "in_app": false,
2023-04-26 16:03:16                                                     "native": false
2023-04-26 16:03:16                                             }
2023-04-26 16:03:16                                     ]
2023-04-26 16:03:16                             }
2023-04-26 16:03:16                     }
2023-04-26 16:03:16             ]
2023-04-26 16:03:16     },
2023-04-26 16:03:16     "fingerprint": [],
2023-04-26 16:03:16     "modules": {},
2023-04-26 16:03:16     "event_id": "944ce0722a334bf9b2888ed51f477717",
2023-04-26 16:03:16     "contexts": {
2023-04-26 16:03:16             "runtime": {
2023-04-26 16:03:16                     "name": "Eclipse Adoptium",
2023-04-26 16:03:16                     "version": "17.0.7"
2023-04-26 16:03:16             }
2023-04-26 16:03:16     },
2023-04-26 16:03:16     "sdk": {
2023-04-26 16:03:16             "name": "sentry.java",
2023-04-26 16:03:16             "version": "6.13.0",
2023-04-26 16:03:16             "packages": [
2023-04-26 16:03:16                     {
2023-04-26 16:03:16                             "name": "maven:io.sentry:sentry",
2023-04-26 16:03:16                             "version": "6.13.0"
2023-04-26 16:03:16                     }
2023-04-26 16:03:16             ]
2023-04-26 16:03:16     },
2023-04-26 16:03:16     "environment": "local-dev",
2023-04-26 16:03:16     "platform": "java",
2023-04-26 16:03:16     "server_name": "e73618e548b4"
2023-04-26 16:03:16 }
2023-04-26 16:03:16 DEBUG: Envelope sent successfully.
2023-04-26 16:03:16 DEBUG: Envelope flushed

I also tried running a similar command connecting the REPL to one POD that is running the same project with the same env vars and i get this:


`clj꞉myapp.core꞉> (sentry/send-event (Exception. "testing") "testing!!" )

-->> "dda4a47f31eb48bbb0992a1651c8edca"

Here is the pod's logs:

"fingerprint": [],
    "modules": {},
    "event_id": "dda4a47f31eb48bbb0992a1651c8edca",
    "contexts": {
        "runtime": {
            "name": "Eclipse Adoptium",
            "version": "17.0.6"
        }
    },
    "sdk": {
        "name": "sentry.java",
        "version": "6.13.0",

...

DEBUG: Serializing object: {
    "timestamp": "2023-04-26T19:11:02.289Z",
    "discarded_events": [
        {
            "reason": "queue_overflow",
            "category": "error",
            "quantity": 480
        },
        {
            "reason": "network_error",
            "category": "error",
            "quantity": 720
        }
    ]
}
DEBUG: Envelope sent successfully.
DEBUG: Envelope flushed

Expected Result

A new event should appear in my Sentry project.

Actual Result

No new events were collected by Sentry.

I already check the DSN.

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

1 participant