-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Sentry Envelopes/Tunnel #193
Comments
Hey there! It looks like your JavaScript side is having a bit of trouble connecting with Buggregator due to some missing or incorrect settings. Here's how you can try to fix it:
You can set it like this in your environment file (.env): SENTRY_JS_DSN_HOST=http://sentry@server_name:8000 Replace server_name with the actual name of your server. This should match the setup you have for your PHP project if that's working well.
|
Thanks for the reply, I am trying to setup envelope since this is what well end up getting used on release. The JS has this but im not sure this matters since it sends the request to the tunnel and the PHP backend is what is actually sending the request.
the PHP code is using guzzle and looks like so
This ends up throwing this
Using the same DSN
Setting this up to point to a real sentry DSN results in both of them working so it's only buggregator that doesn't allow envelopes to work. |
@butschster So I ended up getting some more time to play around with this and the Tunnel/Envelope itself does work, my issues ended up being that it was failing trying to parse the sentry_key. To get this to work I needed to add On production sentry this isn't required, I assumed I was passing my headers wrong so I checked how the sentry php sdk is doing it so I could ensure I was using the correct headers.
This is trying to sending too
but will error out with Client error: Again, not including Could they be parsing the key from the DSN url? |
I have a PHP project and some JS on the FE, the PHP Sentry stuff works great but I've run into issues trying to get the JS side working with buggregator.
Doing the using a tunnel results in
Client error:
POST http://127.0.0.1:8000/api/1/envelope/` resulted in a404 Not Found
responseand trying to use it directly with the tunnel results in
server_name is undefined` on https://github.com/buggregator/server/blob/master/app/modules/Sentry/Application/Mapper/EventTypeMapper.php#L28https://develop.sentry.dev/sdk/envelopes/
https://docs.sentry.io/platforms/javascript/troubleshooting/
Both of these work on production sentry
The text was updated successfully, but these errors were encountered: