Closed ismeyueyue closed 2 years ago
NameResolutionFailure
is the app/device able to resolve the DNS name in the DSN (Sentry Data source name?)
DSN for SaaS is something like https://abc@o123.ingest.sentry.io/321
.
This error would come if you couldn't resolve o123.ingest.sentry.io
from the device. Maybe the DSN server doesn't resolve external addresses or something?
Well, the DSN I uesed is the correct like http://5ddxxxxxed@host_url:port/project_id
format, which I get by navigating to [Project] > Settings > Client Keys (DSN)
.
I have no idea about how to solve this error with DSN server from the host url
.
Could you provide me with any suggestions? Thanks a lot.
This is hard for us to help. It seems to be a networking problem between the machien running the game (and Sentry's SDK) and the Sentry server.
If you simply nslookup host_url
where host_url
is the domain in your DSN, does it resolve? Can you reach out to that server, e.g: telnet host_url port
? Maybe a firwall issue
Sorry, this seems like your client can't reach your server and this seems like a network-related issue. Hopefully, the hints above are able to unblock you. Feel free to reopen this otherwise.
Environment
How do you use Sentry? Using sentry to monitor the Unity proformance
Sentry SaaS (sentry.io) or self-hosted/on-premise (which version?) Lastest 22.6.0
Which version of the SDK? Sentry unity sdk version 0.21.1
How did you install the package? (Git-URL, Assetstore) Git-URL
Which version of Unity? Unity version 2021.2.4f1c1
Is this happening in Unity (editor) or on a player like Android, iOS, Windows? Windows
Steps to Reproduce
What you do
I want to use self-hosted sentry to monitor my unity project. I have installed self-hosted sentry successfully, and all docker containers are up healthy. I installed sentry sdk with UPM and configured the dsn with sentry window.
When I start the Unity project, I got the follow the Errors in Debug console.
However I have I have tested the same code using the sentry.io, the result is as expect. This issue is just happend on my self-hosted.
Expected Result
This is correct result sceenshot on sentry.io web.
Actual Result