mulesoft / hubspot-connector

HubSpot all-in-one marketing software helps more than 8,000 companies in 56 countries attract leads and convert them into customers. A pioneer in inbound marketing, HubSpot aims to help its customers make marketing that people actually love.
Other
1 stars 6 forks source link

Update Hubspot base URL #1

Open flavioOrfano opened 9 years ago

flavioOrfano commented 9 years ago

After passing OAuth 2.0 authentication to Hubspot's api all following api calls timeout, "java.net.ConnectException: Connection time out: connect". Looking into this it appears that the connector is trying to access the Hubspot api using the old "http://hubapi.com" base url. Hubspot has changed the base url to "https://api.hubapi.com".

See snippet of log DEBUG below :

DEBUG 2015-07-02 11:18:14,760 [[alans_test].HTTP_Listener_Configuration.worker.01] org.mule.module.hubspot.client.impl.HubSpotClientImpl: Requesting contactById to:http://hubapi.com/contacts/v1/contact/vid/1/profile?access_token=3315553a-54d9-4b21-b463-6cbc786d5d8e ERROR 2015-07-02 11:18:35,798 [[alans_test].HTTP_Listener_Configuration.worker.01] org.mule.exception.DefaultMessagingExceptionStrategy:


Message : Failed to invoke getContactById. Message payload is of type: String Type : org.mule.api.MessagingException Code : MULE_ERROR--2 JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html Payload : brian


Exception stack is:

  1. Connection timed out: connect (java.net.ConnectException) java.net.DualStackPlainSocketImpl:-2 (null)
  2. java.net.ConnectException: Connection timed out: connect (com.sun.jersey.api.client.ClientHandlerException) com.sun.jersey.client.urlconnection.URLConnectionClientHandler:148 (null)
  3. Failed to invoke getContactById. Message payload is of type: String (org.mule.api.MessagingException) org.mule.module.hubspot.processors.GetContactByIdMessageProcessor:140 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
ogrygor commented 7 years ago

Hi.

Seems it`s actual issue. Anyone else tried to connect?

Thank you