Skip to content
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

Hubspot ApiException: (400) #2847

Closed
sentry-io bot opened this issue Jan 3, 2024 · 3 comments
Closed

Hubspot ApiException: (400) #2847

sentry-io bot opened this issue Jan 3, 2024 · 3 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 3, 2024

There is a burst of these errors that just started on January 1, 2024

Sentry Issue: XPRO-60X

ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 03 Jan 2024 17:34:07 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Content-Length': '280', 'Connection': 'keep-alive', 'CF-Ray': '83fcfd9d8de97fbb-IAD', 'CF-Cache-Status': 'DYNAMIC', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'Vary': 'origin, Accept-Encoding', 'Access-Control-Allow-Credentials': 'false', 'X-Content-Type-Options': 'nosniff', 'x-envoy-upstream-service-time': '71', 'x-evy-trace-listener': 'listener_https', 'x-evy-trace-route-configuration': 'listener_https/all', 'x-evy-trace-route-service-name': 'envoyset-translator', 'x-evy-trace-served-by-pod': 'iad02/hubapi-td/envoy-proxy-57d4fb94bb-9ds72', 'x-evy-trace-virtual-host': 'all', 'X-HubSpot-Correlation-Id': '4072e158-b4a0-4982-8b97-0039a87602e4', 'X-HubSpot-RateLimit-Daily': '500000', 'X-HubSpot-RateLimit-Daily-Remaining': '498475', 'X-HubSpot-RateLimit-Interval-Milliseconds': '10000', 'X-HubSpot-RateLimit-Max': '150', 'X-...
(9 additional frame(s) were not displayed)
...
  File "hubspot_xpro/tasks.py", line 152, in sync_contact_with_hubspot
    return api.sync_contact_with_hubspot(user_id).id
  File "hubspot_xpro/api.py", line 618, in sync_contact_with_hubspot
    return upsert_object_request(
@arslanashraf7 arslanashraf7 self-assigned this Jan 4, 2024
@arslanashraf7
Copy link
Contributor

Update:

While debugging the issue I noticed that this is probably a side effect of #2764.

We recently added Vat ID in the profile but that field is not synced with Hubspot properly that's why they contact synce thing has been throwing 400.

I'm currently working on creating a fix PR.

@arslanashraf7
Copy link
Contributor

Update: FYI, @cachob

Contact sync with Hubspot in xPRO is currently blocked, but this is not a user facing issue. The fix for this has been merged #2851. But this might reach production on Monday 1/8.

@arslanashraf7
Copy link
Contributor

Deployed on production

feoh added a commit to mitodl/ol-infrastructure that referenced this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants