Xzandro / sw-exporter

This tool will parse intercepted data from Summoners War and extract information on the monsters and runes of the user.
Apache License 2.0
414 stars 194 forks source link

[BUG] Proxy error happening randomly in Steam mode #516

Open Xzandro opened 8 months ago

Xzandro commented 8 months ago

Please don't report issues that are not relevant to SWEX. Especially now that are more steps involved which you can read on reddit. To get more information, join the Discord.

Describe the bug For some people, an error can occur when in Steam mode. The error usually persists and displays every x seconds

To Reproduce Steps to reproduce the behavior:

Not quite sure.

Expected behavior Error not happening.

Screenshots image

Xzandro commented 6 months ago

This is likely caused by the DNS resolver.

https://github.com/Xzandro/sw-exporter/blob/9c5c8b97c27fd9d7e3c37846e4ab28ae106a44fb/app/proxy/SWProxy.js#L159

SOmethind like this could help:

if (result !== undefined) {
    result = result[0]
}
callback(err, result, 4)