Had this error show up today:
I have had a look at all files and cannot for the life of me work out where this error is originating from?Code:(13:33:46) | [Logger] MrPraim (76561198316529792) ran command: /donate (13:33:47) | Web request callback raised an exception (JsonReaderException: Unexpected character encountered while parsing value: C. Path '', line 0, position 0.) (13:33:47) | at Newtonsoft.Json.JsonTextReader.ParseValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
RustedStore
Moved
Total Downloads: 645 - First Release: Sep 16, 2016 - Last Update: Oct 6, 2016
- 5/5, 5 likes
-
take your config file and run it through a json validator like jsonlint.com
-
-
could it not be related to the new web request that's now used? @Wulf
-
Does it have fee on payments???
-
-
Wulf Community Admin
-
-
See I have seen a lot of plugins being updated for the web request change.
I did a lot of comparing from the previous versions of those plugins and this one and noticed that this bit:
Code://show list if (args.Length == 0){ string url = baseUrl+"/shops/"+username+"?secret="+secret; List<string> textLines = new List<string>{"hello123"}; webrequest.EnqueueGet(url, (code, response) => ListCallback(code, response, player), this); <---- This line } else if (args.Length == 1){ if (args[0] == "claim"){ //claim string url = baseUrl+"/shops/"+username+"/payments/claim?secret="+secret; string params2 = "body={\"steamId\": \""+player.Id+"\"}"; webrequest.EnqueuePost(url, params2, (code, response) => ClaimCallback(code, response, player), this); <---- This line } else { //item details string url = baseUrl+"/shops/"+username+"/items/"+args[0]+"?secret="+secret; string params2 = "body={\"steamId\": \""+ player.Id +"\", \"steamName\": \""+ player.Name +"\"}"; webrequest.EnqueuePost(url, params2, (code, response) => ItemDetailCallback(code, response, player), this); <---- This line } }
Should be like this??:
Code://show list if (args.Length == 0) { string url = baseUrl + "/shops/" + username + "?secret=" + secret; List<string> textLines = new List<string> { "hello123" }; webrequest.Enqueue(url, null, (code, response) => ListCallback(code, response, player), this); } else if (args.Length == 1) { if (args[0] == "claim") { //claim string url = baseUrl + "/shops/" + username + "/payments/claim?secret=" + secret; string params2 = "body={\"steamId\": \"" + player.Id + "\"}"; webrequest.EnqueuePost(url, params2, (code, response) => ClaimCallback(code, response, player), this); } else { //item details string url = baseUrl + "/shops/" + username + "/items/" + args[0] + "?secret=" + secret; string params2 = "body={\"steamId\": \"" + player.Id + "\", \"steamName\": \"" + player.Name + "\"}"; webrequest.EnqueuePost(url, params2, (code, response) => ItemDetailCallback(code, response, player), this); } } }
-
-
weird as i have not changed anything and was working fine no issue's before last rust/oxide update and then that error showed when doing the /donate command post rust/oxide update :/ there isn't anything wrong with the config file as let's be fair there isn't much to go wrong:
Code:{ "secret": "MYKEY", "username": "MyUsername" }
-
Code:
(09:25:13) | Web request callback raised an exception (JsonReaderException: Unexpected character encountered while parsing value: C. Path '', line 0, position 0.) (09:25:13) | at Newtonsoft.Json.JsonTextReader.ParseValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 (09:25:28) | [Logger] DoC (76561198021382990) ran command: /donate config
feel free to use my API Key / username could do with the extra cashLast edited by a moderator: Dec 1, 2017 -
-
quick question and one that may of been overlooked and if so i do apologise.
Lets say i was using this to allows donations,so can this mod be used to move a person to say a VIP group as well as give them the package.
Also is there a timer on the package etc - how long do they get it for as they will need to reclaim next time the server wipes. -
-
how would i add vip groups that i made in game to this store page ? and set it to remove the old group example
people donate for vip level 2 but they are current at vip level 1 and then it adds the new tags and removes the old tags
i just keep getting this and it dose now work for me lol here is what i set up on the package
Screenshot
i have also tryed o.usergroup add [steamid] VIPL5
0.usergroup remove [steamid] vip
(19:50:42) | [rusted.store payment system] Identifier: OpenPigeon
(19:50:42) | Command 'usergroup remove [steamid] VIPL5' not found
(19:50:42) | [rusted.store payment system] Command: usergroup remove [steamid] VIPL5
(19:50:42) | Command 'usergroup add [steamid] vip' not found
(19:50:42) | [rusted.store payment system] Command: usergroup add [steamid] vip
(19:50:42) | [rusted.store payment system] -----/Claimed Payment-----Last edited by a moderator: Nov 26, 2017 -
o.group add VIPL5
o.grant group VIPL5 'perm'
Then in rusted.store when you want to auto add users to that groups it's ---> o.usergroup add "{steamid}" VIPL5
---> To remove users o.usergroup remove "{steamid}" VIPL5 -
whats happened to the website its down i can no longer access it
502 Bad Gateway -
Website coming back up any time soon??
Edit: Website is back upLast edited by a moderator: Dec 1, 2017 -
I've been busy and wasn't aware that people still used this plugin. I'll have time to make some improvements come January/February.