If things are running for 1 hour then I suspect the configuration on your end is setup correctly. The 502 response from Hubspot is very odd. That suggests that their back-end servers which are delivering the data are not responding properly (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502).
Are you able to pull the needed information in another tool / approach? Because my first go to if I were in your shoes is to contact Hubspot about why their back-end servers are not responding in an expected manner.
@Neeraja005@Levi_Turner A QlikSense connector for HubSpot is now available in the HubSpot App Marketplace. More information here. The design of the integration resolves problems with pagination by pulling HubSpot CRM data via the APIs into a SQL Server data warehouse.