Comments (3)
I can only venture a guess here, since the exception message doesn't call out which value was null - it seems like you're trying to set the value of "Changed By" when updating the item, and the value you're trying to assign to it as an empty string (possibly null string). I suspect that this is an invalid value, which causes the exception. Try disabling the update of "Changed By" and see if that solves the issue
Relevant excerpt from the log you shared:
2017-02-06 11:00:27,130 [10] INFO Mail2Bug.MessageProcessingStrategies.SimpleBugStrategy [(null)] - Modifying work item 22 subject: RE: Test Bug2mail
2017-02-06 11:00:27,135 [10] INFO Mail2Bug.MessageProcessingStrategies.NameResolver [(null)] - Resolving name for alias/name ccstestsw/CCS Support Test
2017-02-06 11:00:27,139 [10] WARN Mail2Bug.MessageProcessingStrategies.SpecialValueResolver [(null)] - Name resolution failed for sender alias 'ccstestsw'. Returning display name.
2017-02-06 11:00:27,313 [10] WARN Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - 'CCS Support Test' is an invalid value for Changed By. Trying to find approximate value.
2017-02-06 11:00:27,322 [10] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Approximate value is
2017-02-06 11:00:40,468 [10] ERROR Mail2Bug.Mail2BugEngine [(null)] - Error processing message
Microsoft.TeamFoundation.WorkItemTracking.Client.UnexpectedErrorException: There is a problem on the server. Contact your Team Foundation Server administrator. ---> System.Web.Services.Protocols.SoapException: Object reference not set to an instance of an object.
...
from mail2bug.
Closing for now, since it seems like an issue with configuration rather than the code. Please reopen if needed
from mail2bug.
Hello,
For my TFS project https://htrx.visualstudio.com/ which is configured with an office365 email account @health.com. As I did all configuration settings in my Mail2bug App and it successfully reads and queue these emails to TFS but failed to connect to TFS account/server.
Please advise where I am doing wrong? The password is also okay as it is reading the emails correctly from inbox and TFS is configured with same email account.
Also advise about the path to set in tag. I tried following one by one but none of them worked:
- https://htrx.visualstudio.com/DefaultCollection/GuideMedApplication/
- https://htrx.visualstudio.com/GuideMedApplication/GuideMedApplication%20Team
- https://htrx.visualstudio.com/GuideMedApplication/GuideMedApplication Team
- https://htrx.visualstudio.com/GuideMedApplication/
- https://htrx.visualstudio.com/GuideMedApp/_home
Below is the error log and screen shot showing the error line selected:
E:\Inayat\TFSEmailConfiguration\mail2bug-master\Mail2Bug\Service>mail2bug.exe
2017-09-19 11:04:58,551 [1] INFO Mail2Bug.MainApp [(null)] - Initializing engine for instance 'GuideMed' (Persistent? True)
2017-09-19 11:04:58,573 [1] INFO Mail2Bug.Mail2BugEngine [(null)] - Initalizing MailboxManager
2017-09-19 11:04:58,580 [1] INFO Mail2Bug.Helpers.DPAPIHelper [(null)] - Reading encrypted data from file .\Resources\mail2bug.bin
2017-09-19 11:04:58,580 [1] INFO Mail2Bug.Email.EWS.EWSConnectionManger [(null)] - Creating FolderMailboxManager for ([email protected], [email protected], 151243584, False)
2017-09-19 11:05:24,747 [1] INFO Mail2Bug.Mail2BugEngine [(null)] - Initializing WorkItemManager
2017-09-19 11:05:24,762 [1] INFO Mail2Bug.MainApp [(null)] - Finished initialization of engine for instance 'GuideMed'
2017-09-19 11:05:24,762 [1] INFO Mail2Bug.MainApp [(null)] - --------------- Iteration 0 ---------------
2017-09-19 11:05:24,762 [1] INFO Mail2Bug.Email.EWS.EWSConnectionManger [(null)] - Processing inbox for connection ([email protected], [email protected], 151243584, False)
2017-09-19 11:05:24,779 [1] INFO Mail2Bug.Email.EWS.RecipientsMailboxManagerRouter [(null)] - Processing inbox for RecipientsMailboxManagerRouter
2017-09-19 11:05:27,855 [1] INFO Mail2Bug.Email.EWS.RecipientsMailboxManagerRouter [(null)] - Adding message to client queue: Client ID 100; subject: TFS - Test Issue 16
2017-09-19 11:05:27,855 [1] INFO Mail2Bug.Email.EWS.RecipientsMailboxManagerRouter [(null)] - Finished processing inbox for RecipientsMailboxManagerRouter
2017-09-19 11:05:27,870 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Running for config instance 'GuideMed'
2017-09-19 11:05:27,870 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Found 1 messages for Instance GuideMed. Processing...
2017-09-19 11:05:27,870 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Processing message TFS - Test Issue 16
2017-09-19 11:05:27,888 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Working in standard mode, using TFSWorkItemManager
2017-09-19 11:05:27,908 [8] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Connecting to TFS https://htrx.visualstudio.com/GuideMedApp/_home using Microsoft.TeamFoundation.Client.TfsClientCredentials credentials
2017-09-19 11:05:31,549 [8] WARN Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - TFS connection attempt failed.
Exception: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: TF31002: Unable to connect to this Team Foundation Server: https://htrx.visualstudio.com/GuideMedApp/_home.
Team Foundation Server Url: https://htrx.visualstudio.com/GuideMedApp/_home.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The remote server returned an error: (404) Not Found. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequestAndGetResponse(HttpWebRequest webRequest, WebException& webException)
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
at Mail2Bug.WorkItemManagement.TFSWorkItemManager.ConnectToTfsCollection() in
Thanks
Inayat Ur Rehman
from mail2bug.
Related Issues (20)
- @CurrentIteration doesn't take the Team into account HOT 1
- Feature request: minimum image size threshold? - or other way to avoid email signature images
- Image attachments are coming in duplicated HOT 1
- Support for Graph API
- The Autodiscover service couldn't be located HOT 4
- Recommendation for appropriate ConversationID for Scrum Process Template HOT 2
- Question about the commit : Support HTML comments & embedded images HOT 2
- How to Monitor Mail2Bug in Azure WebJob
- System.Net.Sockets.SocketException (10060)
- Update to work with Azure DevOps Server 2020 HOT 2
- Mail2Bug does not store ongoing conversations for next scheduled task HOT 2
- support for Azure DevOps server HOT 2
- Empty subject causes bugs not to be created?
- Allow multiple bugs to track a single email
- X-Amz-Cf-Id-Kpls6d03rYRmaR9GJM6Zql2UNBqRRxgeF1PEl4nEMhT-GrKS1lAzzg@hotmail.com HOT 2
- TFS issue modification error for external email account HOT 1
- Initializing shared mailbox failing
- Add support OAuth 2.0 Update HOT 1
- This repo is missing important files HOT 4
- Attachments to show up in Description
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail2bug.