#Relay not relaying messages (proxy mode)

28 messages · Page 1 of 1 (latest)

hexed latch
#

I've configured relay on a cloud server, I'm sending test message from my local machine, the message is accepted, but relay is not relaying it. I've configured proxy mode.

Here is my how I send event (I've configured my DSN before that)


Event dispatched.
Event id: 74d5edc6-1dd7-4693-962d-5213b66b8423```

The sentry relay log

```Jul 23 14:07:24 sentry-relay sentry-relay[1683]: 2024-07-23T14:07:24.499210Z DEBUG relay_server::services::project: project state 28c57bfea75ea6e620d711c254ec6100 updated
Jul 23 14:10:05 sentry-relay sentry-relay[1683]: 2024-07-23T14:10:05.118240Z DEBUG request{method=POST uri=/api/4507581984997456/envelope/ version=HTTP/1.1}: tower_http::trace::on_request: started processing request
Jul 23 14:10:05 sentry-relay sentry-relay[1683]: 2024-07-23T14:10:05.119017Z DEBUG relay_server::services::project: project 28c57bfea75ea6e620d711c254ec6100 state requested 1 times
Jul 23 14:10:05 sentry-relay sentry-relay[1683]: 2024-07-23T14:10:05.119378Z DEBUG request{method=POST uri=/api/4507581984997456/envelope/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=1 ms status=200
Jul 23 14:10:05 sentry-relay sentry-relay[1683]: 2024-07-23T14:10:05.119846Z DEBUG relay_server::services::project: project state 28c57bfea75ea6e620d711c254ec6100 updated```

But in the sentry.io dashboard I cannot see the message. It seems that `relay` is not sending the message to the sentry.io server

Here is my `config.yml`

```yaml
relay:
  mode: proxy
  upstream: https://sentry.io/
  host: 0.0.0.0
  port: 3000
sweet zealot
#

Did you only replace the protocol hostname and port in the DSN you got from Sentry?

#

You should also probably set the upstream to the hostname you got in your DSN instead of just sentry.io

hexed latch
#

Yep, otherwise relay won't get the message

hexed latch
#

The message is in relay, the relay service receives the message

sweet zealot
#

Just a silly question, you do still have quota available in your organisation to get new errors?

hexed latch
#

I've made a registration last week and I'm still on the free trial

#

I've just tried to send a message with my DSN and it works, but via relay it doesn't work

sweet zealot
#

Okay, just checking to be sure 🙂

#

Just from the looks of it I don't see anything wrong. And I also would expect relay to tell you if it failed to forward the event to Sentry

hexed latch
#

Agree, it's super weird

sweet zealot
#

I also see you have set the log level to debug too, so that is also great

#

Your relay is also just installed so the latest version?

hexed latch
#

Yes, 24.7.0

sweet zealot
#

Wait are you on the EU infra?

hexed latch
#

Probably yes

sweet zealot
#

Use the hostname from your DSN

hexed latch
#

OMG, that was it

#

But how should I know this, I didn't found anything about this in the docs.

#

This should definitely be in the docs with red bold text.

#

Thank you very much!

sweet zealot
#

I agree this should be highlighted very much so, I'll create an issue for this 🙂

hexed latch
#

Thanks @sweet zealot

sweet zealot
#

It mentions managed mode here as an example but works for all modes ofcourse