Skip to content

报错Object reference not set to an instance of an object.需要重启机器人 #8

@hui6688a

Description

@hui6688a

使用一段时间后会报错,需要重启才能恢复。
播放歌曲失败 Object reference not set to an instance of an object.

2025-04-18 17:36:35.1841| INFO|0|Bot.OnMessageReceived User xxx requested: !yun play 光辉岁月
2025-04-18 17:36:35.1841|ERROR|0|YunPlgun.CommandYunPlay play music fail
System.NullReferenceException: Object reference not set to an instance of an object.
at YunPlugin.YunPlgun.GetApiInterface(MusicApiType type) in C:\Users\Administrator\Desktop\TS3AudioBot-CloudMusic-plugin-main\YunPlugin\YunBot.cs:line 84
at YunPlugin.YunPlgun.ProcessArgs(String args, String useHelp, Int32 argsLen) in C:\Users\Administrator\Desktop\TS3AudioBot-CloudMusic-plugin-main\YunPlugin\YunBot.cs:line 690
at YunPlugin.YunPlgun.CommandYunPlay(String arguments) in C:\Users\Administrator\Desktop\TS3AudioBot-CloudMusic-plugin-main\YunPlugin\YunBot.cs:line 356
2025-04-18 17:36:35.6321| INFO|0|Bot.OnMessageReceived User xxx requested: !yun play 奇迹再现
2025-04-18 17:36:35.6321|ERROR|0|YunPlgun.CommandYunPlay play music fail
System.NullReferenceException: Object reference not set to an instance of an object.
at YunPlugin.YunPlgun.GetApiInterface(MusicApiType type) in C:\Users\Administrator\Desktop\TS3AudioBot-CloudMusic-plugin-main\YunPlugin\YunBot.cs:line 84
at YunPlugin.YunPlgun.ProcessArgs(String args, String useHelp, Int32 argsLen) in C:\Users\Administrator\Desktop\TS3AudioBot-CloudMusic-plugin-main\YunPlugin\YunBot.cs:line 690
at YunPlugin.YunPlgun.CommandYunPlay(String arguments) in C:\Users\Administrator\Desktop\TS3AudioBot-CloudMusic-plugin-main\YunPlugin\YunBot.cs:line 356

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions