question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can anyone help me with this error

See original GitHub issue

[2022-04-03 16:16:24 -03:00] [108 /WebSocketRec] [Error] Socket handler suppressed an exception Newtonsoft.Json.JsonSerializationException: Error setting value to ‘OAuthFlags’ on ‘DSharpPlus.Entities.DiscordMember’. —> System.NullReferenceException: Object reference not set to an instance of an object. at DSharpPlus.Entities.DiscordMember.get_User() at DSharpPlus.Entities.DiscordMember.set_OAuthFlags(Nullable`1 value) at lambda_method166(Closure , Object , Object ) at Newtonsoft.Json.Serialization.ExpressionValueProvider.SetValue(Object target, Object value) — End of inner exception stack trace — at Newtonsoft.Json.Serialization.ExpressionValueProvider.SetValue(Object target, Object value) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.Serialization.JsonSerializerProxy.DeserializeInternal(JsonReader reader, Type objectType) at DSharpPlus.Net.Serialization.SnowflakeArrayAsDictionaryJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer) at Newtonsoft.Json.Linq.JToken.ToObject[T](JsonSerializer jsonSerializer) at DSharpPlus.Net.Serialization.DiscordJson.ToDiscordObject[T](JToken token) at DSharpPlus.DiscordClient.HandleDispatchAsync(GatewayPayload payload) at DSharpPlus.DiscordClient.HandleSocketMessageAsync(String data) at DSharpPlus.DiscordClient.<InternalConnectAsync>g__SocketOnMessage|391_1(IWebSocketClient sender, SocketMessageEventArgs e)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
LennonPereiracommented, Apr 4, 2022

thank you very much it worked

1reaction
DWafflescommented, Apr 4, 2022

Sorry for the difficulty, but I’m really not finding the way to use this latest version. I’m trying through visual studio and it shows that I’m on the latest version. I tried this command “Install-Package DSharpPlus -Version 4.1.0” but it didn’t work either. what should I do?

The nightlies are pre-releases technically so you’ll need to check “include prerelease” or whatever the equivalent for your package manager is. devenv_4V14oGsEs6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can anyone help me with this error message : r/Terraria
I have tried uninstalling Terraria, Steam, and one drive. I've also tried running steam as administrator, but nothing works.
Read more >
Hey can anyone help me with this error that im getting?
I expected it to run perfectly fine. IT runs well on my local machine but in the streamlit deployment it displays this error....
Read more >
Can anyone help me with why the following question ...
The problem I am having with this question is as follows: In the coding below which I have pasted below, I have created...
Read more >
HI, can anyone pls help me with this error in templates ...
Hi @Ibrahim_Wafi. I think you are uploading template is encrypted with password. In this case it can't process the document and throws this ......
Read more >
Can anyone help me with this error? static can only be ...
1 Answer 1 ... indicates that you are trying to declare a static method inside an inner class. In Apex, only top-level classes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found