1. [Oxide] 6:28 PM [Error] Web request produced exception (Url: ) (NullReferenceException: Object reference not set to an instance of an object)

    Been getting this error when reloading a mod for the past 2 weeks. After reloading it a few times it causes all web requests to stop sending. Any ideas what would cause this?
     
  2. Wulf

    Wulf Community Admin

    You have a plugin that is trying to run a webrequest, but isn't actually providing a URL.
     
  3. sry I removed the url in the error along with other data it was sending:

    Code:
    [Oxide] 6:28 PM [Error] Web request produced exception (Url: http://www.skilledsoldiers.com/Rust/receive_exp2.php?key=*******&SteamID=******&nick=*****&level=23&current_exp=103738&required_exp=104400&spoints=54&ammP=0&ammP2=0&ammR=1&ammR2=0&ammS=0&ammS2=0&cook=1&cook2=0&stamina=20&comp=10&exp=6&skill=0&life=0&life2=0&shield=0&shield2=0&shield3=0&dodge=0&flash=0&flash2=0&hreg=1&hreg2=1&hreg3=1&fhreg=0&fhreg2=0&fhreg3=0&supg=1&supg2=0&supg3=0&crft=1&crft2=1&crft3=1&egth=1&egth2=1&egth3=1&date=5.07) (NullReferenceException: Object reference not set to an instance of an object)
    everything worked before the rust update 2 weeks ago
     
  4. Wulf

    Wulf Community Admin

    I'd have to see the code. Could you upload it here?
     
  5. Code:
    webrequests.EnqueueGet(page.."?key="..key.."&SteamID="..PlyID.."&nick="..name.."&level="..plvl.."&current_exp="..pexp.."&required_exp="..reqexp.."&spoints="..psget.."&ammP="..ammP.."&ammP2="..ammP2.."&ammR="..ammR.."&ammR2="..ammR2.."&ammS="..ammS.."&ammS2="..ammS2.."&cook="..cook.."&cook2="..cook2.."&stamina="..stamina.."&comp="..comp.."&exp="..exp.."&skill="..skill.."&life="..life.."&life2="..life2.."&shield="..shield.."&shield2="..shield2.."&shield3="..shield3.."&dodge="..dodge.."&flash="..flash.."&flash2="..flash2.."&hreg="..hreg.."&hreg2="..hreg2.."&hreg3="..hreg3.."&fhreg="..fhreg.."&fhreg2="..fhreg2.."&fhreg3="..fhreg3.."&supg="..supg.."&supg2="..supg2.."&supg3="..supg3.."&crft="..crft.."&crft2="..crft2.."&crft3="..crft3.."&egth="..egth.."&egth2="..egth2.."&egth3="..egth3.."&date="..date, function(code, response) end, self.Plugin)
    
    [DOUBLEPOST=1431044728][/DOUBLEPOST]it only shows this error on a reload (oxide.reload) not when the server first starts and it sends data fine. It only breaks after using the reload command a few times.

    It use to not show this error at all before and we never changed anything with this section of our mod...
     
  6. Wulf

    Wulf Community Admin

    It's likely getting null for one of the variables you are setting, so you may want to add null checks.
     
  7. updated to oxide 879 on github and fixed it