Sync Plugin can't connect to SpiraTeam web service

Tuesday, April 17, 2012
Avatar
I just setup the JiraDataSync 4.x plugin to push data from my existing Spirateam server to my new Jira server.  When I start the service I get the following error message:

Event Type:    Error
Event Source:    SpiraTeam Data Sync Service
Event Category:    None
Event ID:    0
Date:        4/17/2012
Time:        3:02:35 PM
User:        N/A
Computer:    SPIRATEAM
Description:
General Error: An error occurred while receiving the HTTP response to http://spirateam/SpiraTeam/Services/v3_0/ImportExport.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

Server stack trace:
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Inflectra.SpiraTest.PlugIns.Jira4DataSync.SpiraImportExport.IImportExport.Incident_RetrieveNew(DateTime creationDate)
   at Inflectra.SpiraTest.PlugIns.Jira4DataSync.DataSync.Execute(Nullable`1 lastSyncDate, DateTime serverDateTime)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


I can hit that endpoint URL in a browser, so I think that's correct
Anyone seen this error before or have any ideas?
Thanks,
Jason
1 Replies
Thursday, April 19, 2012
Avatar
re: JasonF Tuesday, April 17, 2012
In case anyone else encounters this, it's an IIS configuration issue.  In your {SpiraTeam}/web.conf file, make the following change:
        <behavior name="Inflectra.SpiraTest.Web.Services.v3_0.ServiceBehavior">
<!--the next line is the critical change -->
          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>

You'd never guess that from the log message.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, April 17, 2012
  • Last Reply: Thursday, April 19, 2012
  • Replies: 1
  • Views: 10900