You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running this code (using the Emitter nuget on a .net core console project):
var emitter = new Emitter.Connection();
emitter.Connect();
emitter.GenerateKey("MY_SECRET_KEY_COPIED_FROM_CONSOLE", "chat/", Emitter.Messages.EmitterKeyType.ReadWrite, (r) =>
{
// This never runs
Console.WriteLine(r.Status + ": " + r.Key);
});
this error is thrown:
Error: System.Collections.Generic.KeyNotFoundException: The given key 'key' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Emitter.Messages.KeygenResponse.FromJson(String json) in C:\projects\csharp-133tg\Emitter\Messages\KeygenResponse.cs:line 50
at Emitter.Connection.OnMessageReceived(Object sender, MqttMsgPublishEventArgs e) in C:\projects\csharp-133tg\Emitter\Emitter.cs:line 427
The text was updated successfully, but these errors were encountered:
That would give me a more meaningful error message (although is my first try with Emitter, I have no clue what is going on):
Error: Emitter.EmitterException: the security key provided is not authorized to perform this operation
at Emitter.Messages.KeygenResponse.FromJson(String json) in C:\Temp\csharp-master\Emitter\Messages\KeygenResponse.cs:line 70
at Emitter.Messages.KeygenResponse.FromBinary(Byte[] message) in C:\Temp\csharp-master\Emitter\Messages\KeygenResponse.cs:line 80
at Emitter.Connection.OnMessageReceived(Object sender, MqttMsgPublishEventArgs e) in C:\Temp\csharp-master\Emitter\Emitter.cs:line 430
While running this code (using the Emitter nuget on a .net core console project):
this error is thrown:
The text was updated successfully, but these errors were encountered: