Page MenuHomePhabricator

Unhandled exception on curl/uncurl
Closed, ResolvedPublic

Description

Can't reproduce

2015-07-17 14:14:24,255 [10] DEBUG Default.NetworkClient.Inbound [(null)] - :Jaaron95!75ddd56e@wikipedia/Jaaron95 PRIVMSG #wikipedia-en-accounts :!curl

2015-07-17 14:14:24,255 [10] DEBUG Default.LegacyCommandParser [(null)] - Handling recieved message...

2015-07-17 14:14:24,255 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing (reader)query: SELECT user_accesslevel FROM `user` WHERE @nick LIKE user_nickname AND @user LIKE user_username AND @host LIKE user_hostname ORDER BY `user_accesslevel` ASC;

2015-07-17 14:14:24,256 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Done executing (reader)query: SELECT user_accesslevel FROM `user` WHERE @nick LIKE user_nickname AND @user LIKE user_username AND @host LIKE user_hostname ORDER BY `user_accesslevel` ASC;

2015-07-17 14:14:24,257 [10] INFO  Default [(null)] - Running command: helpmebot6.Commands.Curl

2015-07-17 14:14:24,259 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing (reader)query: SELECT accesslevel FROM `command` WHERE typename = @command LIMIT 1;

2015-07-17 14:14:24,261 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Done executing (reader)query: SELECT accesslevel FROM `command` WHERE typename = @command LIMIT 1;

2015-07-17 14:14:24,261 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing (reader)query: SELECT accesslevel FROM `command` WHERE typename = @command LIMIT 1;

2015-07-17 14:14:24,262 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Done executing (reader)query: SELECT accesslevel FROM `command` WHERE typename = @command LIMIT 1;

2015-07-17 14:14:24,262 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing non-query: INSERT INTO accesslog (al_nuh, al_accesslevel, al_reqaccesslevel, al_class, al_allowed, al_channel, al_args) VALUES (@nuh, @accesslevel, @reqaccesslevel, @class, @allowed, @channel, @args);

2015-07-17 14:14:24,263 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Done executing query

2015-07-17 14:14:24,263 [10] INFO  Default [(null)] - Starting command execution...

2015-07-17 14:14:24,268 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing (reader)query: SELECT channel_id FROM channel WHERE channel_name = @name;

2015-07-17 14:14:24,269 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Done executing (reader)query: SELECT channel_id FROM channel WHERE channel_name = @name;

2015-07-17 14:14:24,270 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing (reader)query: SELECT configuration_id FROM `configuration` WHERE configuration_name = @name;

2015-07-17 14:14:24,271 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Done executing (reader)query: SELECT configuration_id FROM `configuration` WHERE configuration_name = @name;

2015-07-17 14:14:24,272 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing (reader)query: SELECT COUNT(*) FROM channelconfig WHERE cc_channel = @channel AND cc_config = @config;

2015-07-17 14:14:24,275 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Done executing (reader)query: SELECT COUNT(*) FROM channelconfig WHERE cc_channel = @channel AND cc_config = @config;

2015-07-17 14:14:24,275 [10] DEBUG Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Executing non-query: INSERT INTO channelconfig VALUES ( @channel, @config, @value );

2015-07-17 14:14:24,291 [10] ERROR Helpmebot.Legacy.Database.LegacyDatabase [(null)] - Duplicate entry '0-41' for key 'PRIMARY'
MySql.Data.MySqlClient.MySqlException: Duplicate entry '0-41' for key 'PRIMARY'
  at MySql.Data.MySqlClient.MySqlStream.OpenPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.ReadResult (System.UInt64& affectedRows, System.Int64& lastInsertId) [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.MySqlDataReader.NextResult () [0x00000] in <filename unknown>:0

Details

External Reference
HMB-167