Hello, I have a little problem with my script. I try to show text from .txt on web server and if script do function in debug console mostly i see this log <html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx</center> </body> </html> Somtimes script good shows texts from web. This how looks script Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ShowsTxT : MonoBehaviour { void Update() { StartCoroutine(DownloadChangeLog()); } private IEnumerator DownloadChangeLog() { WWW w = new WWW("http://************HereIsGoodWebAdress**************serverchangelog.txt"); yield return w; print(w.text); } }
Can you check your server logs? Have you tried using UnityWebRequest instead of WWW? WWW is deprecated.
There shouldn't be a difference between UWR and WWW here. You should check for errors though. The problem you experience seems to be a server side issue.