Webrequests on Linux not working in uMod buildsFixed
Hey All,

Trying to adapt the Tebex plugin for uMod. It works on Rust and Hurtworld, however we're running into issues on 7DTD.

It looks like web requests are failing - the error we're seeing is 

Web client produced exception (Url: https://plugin.buycraft.net/queue) in 'TebexDonate v1.0.0' plugin
Object reference not set to an instance of an object
at (wrapper delegate-end-invoke) System.IO.MonoSyncFileStream/ReadDelegate:end_invoke_int__this___IAsyncResult (System.IAsyncResult)
at System.IO.MonoSyncFileStream.EndRead (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at uMod.Libraries.WebRequests+WebRequest.Start () [0x00000] in <filename unknown>:0


I think however it might be an issue with the web client rather than our plugin as I noticed another error, not coming from our plugin but with the same problem - we certainly don't call GA, so I guess it's an internal call or something from uMod internally:

Web client produced exception (Url: https://www.google-analytics.com/collect)
Object reference not set to an instance of an object
at (wrapper delegate-end-invoke) System.IO.MonoSyncFileStream/ReadDelegate:end_invoke_int__this___IAsyncResult (System.IAsyncResult)
at System.IO.MonoSyncFileStream.EndRead (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at uMod.Libraries.WebRequests+WebRequest.Start () [0x00000] in <filename unknown>:0

Does the WebClient.exe that 7DTD require specific dependencies, or is there some other problem?

Thanks in advance.
It was reported to us the other day and we've been looking into it. It's only an issue on Linux that we haven't been able to resolve yet. The uMod builds are using a standalone web client to get around a lot of the limitations with security that Unity has, but it hasn't been tested thoroughly yet and will likely have edge cases like this one.

Merged post

I've pushed a newer WebClient for testing, please let us know if you still experience the issue. I've let the other user know too that reported the issue.
Locked automatically