-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR Mail2Bug.Mail2BugEngine [(null)] - Error processing #98
Comments
That's because of a change in the code to support the current iteration path (CurrentIterationSpecialValue) when creating a workitem from an email.
In case the current user doesn't have the right or there are no default team iterations defined, First() will fail. (the team name is not given, so TFS will take the default team settings) _teamSettings will contain the team settings or be null if no team settings. I had the same problem as you. I'm trying to find why my user doesn't get team settings. |
A little follow-up, in case somebody is passing by with the same problem. In order to get this to work, your account, running Mail2Bug, must be member of the project default team to get the current iteration path. In the calling code, a specific team is not provided, so TFS or DevOps will take the default project team by default. You can quickly test if the configuration is correct by launching Chrome for example under the account used to run Mail2Bug: This api call should return the wanted information. If you see an exception in the return json message, there is still an issue in the configuration : your Mail2Bug account is still not a member of the default project team... |
2019-04-05 17:40:08,733 [7] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Successfully connected to TFS
2019-04-05 17:40:08,749 [7] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Connected to TFS. Getting TFS WorkItemStore
2019-04-05 17:40:09,467 [7] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Geting TFS Project
2019-04-05 17:40:09,483 [7] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Getting Team Config
2019-04-05 17:40:09,702 [7] ERROR Mail2Bug.Mail2BugEngine [(null)] - Error processing message
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable
1 source) at Mail2Bug.WorkItemManagement.TFSWorkItemManager..ctor(InstanceConfig config) in D:\download\mail2bug-master\Mail2Bug\WorkItemManagement\TFSWorkItemManager.cs:line 52 at Mail2Bug.Mail2BugEngine.InitProcessingStrategy() in D:\download\mail2bug-master\Mail2Bug\Mail2BugEngine.cs:line 105 at System.Lazy
1.CreateValue()at System.Lazy
1.LazyInitValue() at System.Lazy
1.get_Value()at Mail2Bug.Mail2BugEngine.ProcessInboxInternal() in D:\download\mail2bug-master\Mail2Bug\Mail2BugEngine.cs:line 79
The text was updated successfully, but these errors were encountered: